ci(codescan): update njsscan #6120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NodeJSScan | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: '0 12 * * 4' | |
permissions: read-all | |
jobs: | |
nodejsscan: | |
name: NodeJS Scan | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Setup Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b | |
with: | |
python-version: '3.12' | |
- name: nodejsscan scan | |
id: njsscan | |
uses: ajinabraham/njsscan-action@2caddc3c5e6c3b2374fbe3bb67fc733bf80d8078 | |
with: | |
args: '. --sarif --output results.sarif || true' | |
- name: Upload njsscan report | |
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd | |
with: | |
sarif_file: results.sarif |