Supply Chain #45
This file contains hidden or 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
| name: Supply Chain | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '**/Cargo.toml' | |
| - 'deny.toml' | |
| - '.github/workflows/supply-chain.yml' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '**/Cargo.toml' | |
| - 'deny.toml' | |
| - '.github/workflows/supply-chain.yml' | |
| schedule: | |
| - cron: '41 4 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_AUDIT_VERSION: 0.22.1 | |
| CARGO_DENY_VERSION: 0.19.6 | |
| jobs: | |
| audit: | |
| name: RustSec Audit | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@1.88.0 | |
| - name: Install cargo-audit | |
| run: cargo install cargo-audit --version "$CARGO_AUDIT_VERSION" --locked | |
| - name: Run cargo audit | |
| run: cargo audit --deny warnings | |
| deny: | |
| name: Dependency Policy | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@1.88.0 | |
| - name: Install cargo-deny | |
| run: cargo install cargo-deny --version "$CARGO_DENY_VERSION" --locked | |
| - name: Run cargo deny | |
| run: cargo deny check advisories bans licenses sources |