mirror of
https://github.com/ajinabraham/njsscan-action
synced 2025-01-20 15:34:32 +00:00
d58d8b2f26322cd35a9efb8003baac517f226d81
njsscan action
njsscan finds insecure code patterns in your node.js applications.
Example Usage
Add the following file .github/workflows/njsscan.yml to your node.js repositories in Github to enable njsscan in your CI/CD or DevSecOps pipeline.
name: njsscan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
njsscan:
runs-on: ubuntu-latest
name: njsscan check
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: nodejsscan scan
id: njsscan
uses: ajinabraham/njsscan-action@master
with:
args: '.'
Github Code Scanning SARIF upload
name: njsscan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
njsscan:
runs-on: ubuntu-latest
name: njsscan code scanning
steps:
- name: Checkout the code
uses: actions/checkout@v2
- 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@v1
with:
sarif_file: results.sarif
For configuration, see: https://github.com/ajinabraham/njsscan#configure-njsscan
Description
nodejsscan Github Action
actioncode-anaysiscode-reviewgithubactionsnjsscannjsscan-actionnodejsnodejsscannodesastsaststaticanalysis
Readme
Apache-2.0
59 KiB
Languages
Dockerfile
88.6%
Shell
11.4%