-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (34 loc) · 842 Bytes
/
lint.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
name: Lint
on:
push:
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
jobs:
hadolint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
ignore: DL3018
njsscan:
runs-on: ubuntu-latest
timeout-minutes: 15
name: njsscan code scanning
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: nodejsscan scan
id: njsscan
uses: ajinabraham/njsscan-action@master
with:
args: '. --sarif --output results.sarif || true'
- name: Upload njsscan report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif