File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : [ "main", "DSSRF_Branch_Rule" ]
9+ pull_request :
10+ # The branches below must be a subset of the branches above
11+ branches : [ "main" ]
12+ schedule :
13+ - cron : ' * * * * *'
14+
15+ permissions :
16+ contents : read
17+
18+ jobs :
19+ njsscan :
20+ permissions :
21+ contents : read # for actions/checkout to fetch code
22+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
23+ actions : read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
24+ runs-on : ubuntu-latest
25+ name : njsscan code scanning
26+ steps :
27+ - name : Checkout the code
28+ uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
29+ - name : nodejsscan scan
30+ id : njsscan
31+ uses : ajinabraham/njsscan-action@7237412fdd36af517e2745077cedbf9d6900d711
32+ with :
33+ args : ' . --sarif --output results.sarif || true'
34+ - name : Upload njsscan report
35+ uses : github/codeql-action/upload-sarif@7434149006143a4d75b82a2f411ef15b03ccc2d7
36+ with :
37+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments