add trivy, anchore and cargo-audit scans #3
Workflow file for this run
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 GitHub Action is using cargo-audit to perform an audit for crates with security vulnerabilities. | |
# https://github.com/rustsec/audit-check | |
## | |
name: Security audit | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "**/Cargo.toml" | |
- "**/Cargo.lock" | |
schedule: | |
- cron: "40 13 * * 0" | |
jobs: | |
security_audit: | |
runs-on: ${{ fromJson(github.repository_owner == 'subspace' && '["self-hosted", "ubuntu-20.04-x86-64"]' || '"ubuntu-22.04"') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 #v1.4.1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
continue-on-error: true |