-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (45 loc) · 1.66 KB
/
code-review.yml
File metadata and controls
55 lines (45 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Code Review
on: [pull_request]
jobs:
# -- ESLINT -----------------------------------------------------------------
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Harden GitHub Actions Runner
uses: step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
raw.githubusercontent.com:443
registry.npmjs.org:443
snyk.io:443
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Run ESLint
uses: reviewdog/action-eslint@d3395027ea2cfc5cf8f460b1ea939b6c86fea656 # tag=v1.17.0
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# -- DOCKER -----------------------------------------------------------------
hadolint:
name: Hadolint
runs-on: ubuntu-latest
steps:
- name: Harden GitHub Actions Runner
uses: step-security/harden-runner@8f144f8401c4e3693085dff03603f617f566ec6b
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
raw.githubusercontent.com:443
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: Run hadolint
uses: reviewdog/action-hadolint@141ffd8d2f0b75e6fc7c87341331985448b62aa4 # v1.34.1
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}