Add cargo-vet and cargo-deny supply-chain security#58
Open
jerrysxie wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces Rust supply-chain security tooling by adding cargo-vet configuration/audit scaffolding and CI workflows to run cargo vet on pull requests and comment results back on the PR.
Changes:
- Added
supply-chain/cargo-vet config, audits, and import lock files. - Added a
cargo-vetPR workflow to runcargo vet --lockedand upload the PR number as an artifact. - Added a
workflow_runPR-comment workflow to post/update a cargo-vet status comment and label PRs on failure.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| supply-chain/imports.lock | Adds initial cargo-vet imports lock scaffolding for external audit imports. |
| supply-chain/config.toml | Configures cargo-vet and audit import sources (ODP/Google/Mozilla). |
| supply-chain/audits.toml | Adds the local cargo-vet audits file scaffold. |
| .github/workflows/cargo-vet.yml | Adds CI workflow to run cargo vet on PRs and publish PR-number artifact. |
| .github/workflows/cargo-vet-pr-comment.yml | Adds workflow to comment cargo-vet results on PRs and apply a label on failure. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+43
to
+49
| if: ${{ failure() }} || ${{ success() }} | ||
| run: | | ||
| mkdir -p ./pr | ||
| echo ${{ github.event.number }} > ./pr/NR | ||
| - uses: actions/upload-artifact@v4 | ||
| # Need to upload the artifact in both success and failure cases so comment can be updated in either case | ||
| if: ${{ failure() }} || ${{ success() }} |
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: true | ||
|
|
Comment on lines
+74
to
+75
| Details about the vetting process can be found in [supply-chain/README.md](../blob/main/supply-chain/README.md) | ||
|
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds supply-chain security tooling based on the
embedded-rust-template:
supply-chain/) – dependency audit tracking with importsfrom ODP shared audits, Google, and Mozilla.
deny.toml) – license, advisory, ban, and source checks.cargo-vet.yml+ PR comment workflow, and thedenyjob incheck.yml.After merging, run
cargo vetlocally to populate exemptions for anyexisting unaudited dependencies: