Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,29 @@ jobs:
sarif_file: trivy-results.sarif
category: trivy

rustsec:
name: RustSec audit
runs-on: ["oneapi-rs", "Linux"]

permissions:
contents: read
security-events: write
actions: read

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Audit dependencies against RustSec
run: cargo +stable audit --deny unsound --format sarif > cargo-audit.sarif

- name: Upload RustSec findings
# Upload the report even when the audit step fails on findings.
if: ${{ always() && hashFiles('cargo-audit.sarif') != '' }}
uses: github/codeql-action/upload-sarif@d8073367669608af8fbcc5f63dd0a0d52bb90cff # v4
with:
sarif_file: cargo-audit.sarif
category: rustsec

deploy-documentation:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && inputs.deploy_documentation == 'true')
needs: build-and-test
Expand Down
Loading
Loading