-
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.
Scan all OS-specific binaries from a Linux container.
- Loading branch information
1 parent
4eecaab
commit 6410f3e
Showing
1 changed file
with
22 additions
and
12 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 |
---|---|---|
|
@@ -214,17 +214,6 @@ jobs: | |
shell: bash | ||
run: parallelize results Build-Executor | ||
|
||
- # === Scan for CVEs (Linux only) === | ||
name: Scan for CVEs | ||
if: runner.os == 'Linux' | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: rootfs | ||
scan-ref: build | ||
ignore-unfixed: true | ||
format: table | ||
exit-code: 1 | ||
|
||
- # === Prepare Windows Cert === | ||
name: Prepare Windows Cert | ||
shell: bash | ||
|
@@ -408,11 +397,32 @@ 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 | ||
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 | ||
|