cargo-vet audits #29
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
name: cargo-vet audits | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- '.github/workflows/aggregate-audits.yml' | |
- 'supply-chain/sources.txt' | |
repository_dispatch: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
aggregate: | |
name: Aggregate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: dtolnay/rust-toolchain@stable | |
id: toolchain | |
- run: rustup override set ${{steps.toolchain.outputs.name}} | |
- name: Install cargo-vet | |
run: cargo install cargo-vet --version ~0.9 | |
- name: Aggregate audits | |
run: cargo vet aggregate --output-file supply-chain/audits.toml supply-chain/sources.txt | |
- name: Commit and push aggregated audits | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update aggregated cargo-vet audits | |
file_pattern: 'supply-chain/audits.toml' |