-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCA (dependency scanning) is slow and has little value in change assurance. This splits it out to be run only as a regular scan against the code-base. SAST (CodeQL) is moved into the standard change assurance workflow.
- Loading branch information
1 parent
b6e0568
commit 079693a
Showing
5 changed files
with
58 additions
and
37 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Scan dependencies | ||
description: Scans the dependencies for known security vulnerabilities | ||
inputs: | ||
token: | ||
description: GitHub token | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Cache vdb | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
${{ github.workspace }}/vdb | ||
key: vdb-os_${{ runner.os }} | ||
|
||
- name: Scan | ||
uses: ShiftLeftSecurity/scan-action@master | ||
env: | ||
DISABLE_TELEMETRY: 'true' | ||
ENABLE_OSS_RISK: 'true' | ||
FETCH_LICENSE: 'true' | ||
VDB_HOME: ${{ github.workspace }}/vdb | ||
WORKSPACE: https://github.com/${{ github.repository }}/blob/${{ github.sha }} | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
with: | ||
type: json,yaml,serverless,dockerfile,kubernetes,depscan,bom | ||
output: reports | ||
|
||
- name: Upload scan reports | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: slscan-reports | ||
path: reports |
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
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
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
079693a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://63cec373872add709ff8f887--notgovuk.netlify.app