Skip to content

Stop special-casing RUSTSEC-2025-0021 for cargo deny on CI #1991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,28 +330,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install tomlq
run: |
# The runner already has the `yq` command but not its associated `tomlq` command.
sudo apt-get update
sudo apt-get install yq
- name: Strict check, but omit gix-testtools
uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check advisories
arguments: --workspace --all-features --exclude gix-testtools
- name: Configure less strict check
run: |
filter='.advisories.ignore += [
{ id: "RUSTSEC-2025-0021", reason: "gix-testtools can’t upgrade from old gix-features yet" }
]'
tomlq "$filter" deny.toml --toml-output > deny-but-ignore-RUSTSEC-2025-0021.toml
- name: Less strict check, but include gix-testtools
uses: EmbarkStudios/cargo-deny-action@v2
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check advisories
arguments: --workspace --all-features
command-arguments: --config deny-but-ignore-RUSTSEC-2025-0021.toml

cargo-deny:
runs-on: ubuntu-latest
Expand Down
Loading