-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3461 from ActiveState/mitchell/dx-2978-2
First attempt using aquasecurity/trivy-action to scan for CVEs during build.
- Loading branch information
Showing
76 changed files
with
1,413 additions
and
440 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,11 +397,33 @@ jobs: | |
name: session-build-${{ matrix.sys.os }} | ||
path: build/ | ||
|
||
scan: | ||
name: Scan | ||
needs: | ||
- os_specific | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download All Build Session Artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: build/ | ||
|
||
- name: Scan for CVEs | ||
if: runner.os == 'Linux' | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: rootfs | ||
scan-ref: build | ||
list-all-pkgs: true | ||
ignore-unfixed: true | ||
format: table | ||
exit-code: 1 | ||
|
||
# === Deploy job (runs once with combined artifacts from OS specific job) === | ||
deploy: | ||
name: Deploy | ||
needs: | ||
- os_specific | ||
- scan | ||
runs-on: ubuntu-20.04 | ||
env: | ||
ACTIVESTATE_CI: true | ||
|
@@ -424,7 +446,7 @@ jobs: | |
name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
go-version: 1.22.x | ||
|
||
- # === Install State Tool === | ||
name: Install State Tool | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.