File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name: Snyk Software Composition Analysis Scan
2+ # This git workflow leverages Snyk actions to perform a Software Composition
3+ # Analysis scan on our Opensource libraries upon Pull Requests to Master &
4+ # Develop branches. We use this as a control to prevent vulnerable packages
5+ # from being introduced into the codebase.
6+ on:
7+ pull_request_target:
8+ types:
9+ - opened
10+ branches:
11+ - master
12+ - develop
13+ jobs:
14+ Snyk_SCA_Scan:
15+ runs-on: ubuntu-latest
16+ strategy:
17+ matrix:
18+ node-version: [16.x]
19+ steps:
20+ - uses: actions/checkout@v2
21+ - name: Setting up Node
22+ uses: actions/setup-node@v1
23+ with:
24+ node-version: ${{ matrix.node-version }}
25+ - name: Installing snyk-delta and dependencies
26+ run: npm i -g snyk-delta
27+ - uses: snyk/actions/setup@master
28+ - name: Perform SCA Scan
29+ continue-on-error: false
30+ run: |
31+ snyk test --all-projects --detection-depth=4 --exclude=docker,Dockerfile --severity-threshold=critical
32+ env:
33+ SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
Original file line number Diff line number Diff line change 1+ name: Snyk Static Analysis Scan
2+ # This git workflow leverages Snyk actions to perform a Static Application
3+ # Testing scan (SAST) on our first-party code upon Pull Requests to Master &
4+ # Develop branches. We use this as a control to prevent vulnerabilities
5+ # from being introduced into the codebase.
6+ on:
7+ pull_request_target:
8+ types:
9+ - opened
10+ branches:
11+ - master
12+ - develop
13+ jobs:
14+ Snyk_SAST_Scan :
15+ runs-on: ubuntu-latest
16+ steps:
17+ - uses: actions/checkout@v2
18+ - uses: snyk/actions/setup@master
19+ - name: Perform Static Analysis Test
20+ continue-on-error: true
21+ run: |
22+ snyk code test --all-projects --detection-depth=4 --exclude=docker,Dockerfile --severity-threshold=high
23+ env:
24+ SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
25+ # The Following Requires Advanced Security License
26+ # - name: Upload results to Github Code Scanning
27+ # uses: github/codeql-action/upload-sarif@v1
28+ # with:
29+ # sarif_file: snyk_sarif
You can’t perform that action at this time.
0 commit comments