Enable cargo-vet (#4444)

* Initialize cargo-vet on wasmtime.

* Add cargo-vet to CI.

* Add README.
This commit is contained in:
Bobby Holley
2022-07-25 13:21:14 -07:00
committed by GitHub
parent 3ef89b7787
commit 89f9de7cc3
5 changed files with 1333 additions and 0 deletions

View File

@@ -45,6 +45,25 @@ jobs:
echo `pwd` >> $GITHUB_PATH
- run: cargo deny check bans licenses
# Ensure dependencies are vetted. See https://mozilla.github.io/cargo-vet/
cargo_vet:
name: Cargo vet
runs-on: ubuntu-latest
env:
CARGO_VET_VERSION: 0.2.0
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: ./.github/actions/install-rust
- uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
- run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH
- run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
- run: cargo vet --locked
doc:
name: Doc build
runs-on: ubuntu-latest

7
supply-chain/README Normal file
View File

@@ -0,0 +1,7 @@
This directory contains the state for cargo-vet, a tool to help projects ensure
that third-party Rust dependencies have been audited by a trusted entity.
More about the tool can be found here: https://mozilla.github.io/cargo-vet/
The audits.toml file may be imported by other projects, and therefore should be
handled with care. Ask for help if you're not sure.

5
supply-chain/audits.toml Normal file
View File

@@ -0,0 +1,5 @@
# cargo-vet audits file
[audits]

1297
supply-chain/config.toml Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
# cargo-vet imports lock
[audits]