Skip to content

Commit

Permalink
Merge pull request #6981 from freedomofpress/cargo-vet
Browse files Browse the repository at this point in the history
Add initial `cargo vet` configuration
  • Loading branch information
zenmonkeykstop committed Oct 12, 2023
2 parents c8d6b8f + 3a2462c commit 7fd2294
Show file tree
Hide file tree
Showing 5 changed files with 1,276 additions and 240 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cargo-vet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Based off of https://mozilla.github.io/cargo-vet/configuring-ci.html

name: cargo vet

on: [push, pull_request]

jobs:
cargo-vet:
name: Vet Dependencies
runs-on: ubuntu-latest
# Keep version in sync with rust-toolchain.toml
container: rust:1.71.1
env:
CARGO_VET_VERSION: 0.8.0
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
- name: Add the tool cache directory to the search path
run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH
- name: Ensure that the tool cache is populated with the cargo-vet binary
run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
- name: Invoke cargo-vet
run: cargo vet --locked
Loading

0 comments on commit 7fd2294

Please sign in to comment.