Repository navigation
ci: Make supply-chain audits advisory for PRs and mandatory for releases - #2788
Merged
Merged
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe workflows now distinguish development validation from release validation: cargo-deny failures warn without blocking pull requests or merge queues, while a new shared release-workflow audit must pass before vendor or build jobs can produce artifacts; push-event audits remain blocking. Flow diagram for advisory PR audits and blocking release auditsflowchart TD
Event[CI event] --> Audit[cargo-deny audit]
Audit --> PR{Pull request or merge queue?}
PR -->|Yes| Warning[Report warning]
PR -->|No: push| Block[Block CI on failure]
Release[Release workflow] --> ReleaseAudit[Supply chain audit]
ReleaseAudit -->|Pass| Artifacts[Vendor and build artifacts]
ReleaseAudit -->|Fail| Stop[Prevent artifact builds and publishing]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/build-binary.yaml" line_range="18" />
<code_context>
+ runs-on: ubuntu-24.04
+ steps:
+ - uses: actions/checkout@v7
+ - uses: EmbarkStudios/cargo-deny-action@v2
+ with:
+ command: check
</code_context>
<issue_to_address>
**Compromised audit action can publish**
When an attacker compromises or retargets the action’s `v2` tag before a tagged release runs, the attacker-controlled action runs in the release workflow with the inherited `contents: write` token, which it can exfiltrate and use to modify repository contents or releases.
Pin the action to a reviewed full commit SHA and update it only through reviewed changes.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: .github/workflows/build-binary.yaml:18
rh-jfuller
enabled auto-merge
October 23, 2026 10:03
rh-jfuller
force-pushed
the
change-cargo-deny
branch
from
October 23, 2026 10:16
5f8a556 to
d41ad41
Compare
Report cargo-deny failures as warnings for pull requests and merge queues. Require a successful audit before building release artifacts, blocking publishing when the audit fails. Closes guacsec#2785
rh-jfuller
force-pushed
the
change-cargo-deny
branch
from
October 23, 2026 10:22
d41ad41 to
74daa5f
Compare
sourcery-ai
Bot
dismissed
their stale review
October 23, 2026 10:23
Sourcery withdrew this approval because the latest commits introduced blocking findings.
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.
Keep cargo-deny running on PRs and merge queues, but report failures as warnings without blocking CI.
Closes #2785
Summary by Sourcery
Separate advisory CI audits from mandatory release auditing to prevent publishing artifacts when supply-chain checks fail.
Enhancements:
CI: