Skip to content

Commit aad0343

Browse files
authored
Create njsscan-analysis.yml
1 parent 999114a commit aad0343

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow integrates njsscan with GitHub's Code Scanning feature
2+
# nodejsscan is a static security code scanner that finds insecure code patterns in your Node.js applications
3+
4+
name: njsscan sarif
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
# The branches below must be a subset of the branches above
11+
branches: [ master ]
12+
schedule:
13+
- cron: '26 18 * * 3'
14+
15+
jobs:
16+
njsscan:
17+
runs-on: ubuntu-latest
18+
name: njsscan code scanning
19+
steps:
20+
- name: Checkout the code
21+
uses: actions/checkout@v2
22+
- name: nodejsscan scan
23+
id: njsscan
24+
uses: ajinabraham/njsscan-action@master
25+
with:
26+
args: '. --sarif --output results.sarif || true'
27+
- name: Upload njsscan report
28+
uses: github/codeql-action/upload-sarif@v1
29+
with:
30+
sarif_file: results.sarif

0 commit comments

Comments
 (0)