Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbom #48

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

sbom #48

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,20 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@cd46bde16ab981b0a7b2dce0574509104543276e # v9
- uses: DeterminateSystems/magic-nix-cache-action@8a218f9e264e9c3803c9a1ee1c30d8e4ab55be63 # v2
- run: nix build .#amazonImage -L --system ${{ matrix.runs-on.system }}
- run: nix flake check -L --system ${{ matrix.runs-on.system }}
if: ${{ matrix.runs-on.system != 'aarch64-linux' }}
- name: Generate SBOM
run: nix run github:tiiuae/sbomnix -- ./result
- name: Scan SBOM
uses: anchore/scan-action@1d59d90b47fc11ff8f97822da6c25eec888f81cf # v3
id: scan
with:
sbom: ./sbom.cdx.json
- name: Mangle SARIF
if: always()
run:
jq '(.runs[].results[].locations[].physicalLocation.artifactLocation.uri) |= "file:./result"' ${{ steps.scan.outputs.sarif }} > ./result.sarif

- name: Upload SARIF report
if: always()
uses: github/codeql-action/upload-sarif@382a50a0284c0de445104889a9d6003acb4b3c1d # v2
with:
sarif_file: ./result.sarif
1 change: 0 additions & 1 deletion .github/workflows/upload-legacy-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
Expand Down
Loading