-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MISC] Enabling scanning for other images (#118)
- Loading branch information
Showing
2 changed files
with
19 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
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 |
---|---|---|
|
@@ -4,17 +4,29 @@ on: | |
branches: | ||
- 3.4-22.04/edge | ||
- 3.5-22.04/edge | ||
- 3.4-22.04/stable | ||
- 3.5-22.04/stable | ||
pull_request: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
type: string | ||
default: '' | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yaml | ||
with: | ||
branch: ${{ inputs.branch }} | ||
scan: | ||
name: Trivy scan and sbom generation | ||
needs: build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
|
||
- name: Install rockcraft (for skopeo) | ||
run: | | ||
sudo snap install rockcraft --classic --edge | ||
|
@@ -48,6 +60,7 @@ jobs: | |
if: always() | ||
with: | ||
sarif_file: 'trivy-results.sarif' | ||
ref: ${{ inputs.branch }} | ||
|
||
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph | ||
uses: aquasecurity/[email protected] | ||
|