-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (45 loc) · 1.66 KB
/
code-review.yml
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@2579b52abd08b0a4c3ad0e4476ddb0f2036e3b67
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Run ESLint
uses: reviewdog/action-eslint@f2ee6727e05e6f0e46ea1d06a16f6685d3d7fb37 # v1.19.2
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@2579b52abd08b0a4c3ad0e4476ddb0f2036e3b67
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Run hadolint
uses: reviewdog/action-hadolint@7bd0800b7ce35c6d644cde762174e69f18896973 # v1.35.0
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}