Skip to content

fix(ci): fix cargo deny workflow#1048

Merged
fengmk2 merged 6 commits intomainfrom
fix-cargo-deny
Mar 24, 2026
Merged

fix(ci): fix cargo deny workflow#1048
fengmk2 merged 6 commits intomainfrom
fix-cargo-deny

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Mar 19, 2026

Summary

  • Clone rolldown repo in cargo deny workflow (not a git submodule, needs explicit checkout like the CI clone action)
  • Upgrade cargo-deny to 0.19.0 for CVSS 4.0 advisory database support
  • Update deny.toml: add missing allowed licenses, allow git source orgs, exclude unlicensed first-party crates, ignore upstream advisory IDs

Test plan

  • cargo deny check passes locally with exit code 0

@fengmk2 fengmk2 self-assigned this Mar 19, 2026
@netlify
Copy link

netlify bot commented Mar 19, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 06bdd00
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69c1f74206a05a0008367d32

Copy link
Member Author

fengmk2 commented Mar 19, 2026


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment on lines +38 to +42
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
repository: rolldown/rolldown
path: rolldown
ref: ${{ steps.upstream-versions.outputs.ROLLDOWN_HASH }}

Check notice

Code scanning / zizmor

credential persistence through GitHub Actions artifacts Note

credential persistence through GitHub Actions artifacts
The rolldown directory is not a git submodule — it's an external repo
cloned by the CI clone action. The deny workflow had `submodules: true`
which was a no-op. Replace it with an explicit rolldown checkout at the
pinned hash from .upstream-versions.json.
fengmk2 added 2 commits March 24, 2026 10:11
The setup-rust action resolves cargo-deny@latest to 0.18.4 which cannot
parse CVSS 4.0 scores in the advisory database (RUSTSEC-2026-0009).
Pin to 0.18.9 which includes the fix from EmbarkStudios/cargo-deny#805.
Add missing allowed licenses (BSD-2-Clause, BSL-1.0, bzip2-1.0.6,
CC0-1.0, CDLA-Permissive-2.0, MIT-0, Zlib) to match rolldown's config.
Allow git sources from voidzero-dev, reubeno, polachok, branchseer orgs.
Exclude unlicensed first-party crates from checks and ignore upstream
advisory IDs from rolldown dependencies.
@fengmk2 fengmk2 changed the title fix(ci): clone rolldown repo in cargo deny workflow fix(ci): fix cargo deny workflow Mar 24, 2026
The graph exclude already handles unlicensed first-party crates, so
this setting is unnecessary.
@fengmk2 fengmk2 marked this pull request as ready for review March 24, 2026 02:24
@fengmk2 fengmk2 merged commit a5b2e1f into main Mar 24, 2026
26 checks passed
@fengmk2 fengmk2 deleted the fix-cargo-deny branch March 24, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants