-
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.
Added nightly CVE scanner for the release version.
- Loading branch information
1 parent
bd82284
commit 82dddea
Showing
1 changed file
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Scan | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
fetch-os-specific-binaries: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install State Tool | ||
uses: ActiveState/setup-state-tool@v1 | ||
|
||
- name: Copy State Tool binaries to workspace dir | ||
shell: bash | ||
run: | | ||
exe=`which state` | ||
dir=`dirname $exe` | ||
cp -r $dir/* '${{ github.workspace }}' | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.os }}-binaries | ||
path: . | ||
|
||
scan: | ||
needs: fetch-os-specific-binaries | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download binaries | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Scan binaries | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: rootfs | ||
scan-ref: '.' | ||
ignore-unfixed: true | ||
format: table | ||
exit-code: 1 |