chore(CI): upgrade dependency-review-action to v5 and retry on snapshot warnings - #11201
Merged
Conversation
…ot warnings The dependency-review job compares the dependency snapshot of the PR's base commit against the one of its head commit. The base snapshot is submitted by a different workflow run than the one performing the comparison, so it is occasionally not there yet when the comparison runs. The action then sees zero base dependencies, reports the entire crate tree as newly added and fails on advisories that already exist on master, e.g.: The number of snapshots compared for the base SHA (0) and the head SHA (1) do not match. You may see unexpected additions in the diff. ... Cargo.Bazel.toml.lock » mio@0.8.10 (high severity) ##[error]Dependency review detected vulnerable packages. Enable retry-on-snapshot-warnings so the action waits for the base snapshot instead of failing on a comparison it knows is incomplete. Also bump the action from v4.9.0 to v5.0.0. That major release only moves the runtime from node20 to node24; no inputs were renamed or removed. It additionally silences the deprecation warning the old pin emitted, since node20 actions are already being forced onto node24 by the runner. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the dependency-review GitHub Actions workflow to reduce flaky failures caused by missing base dependency snapshots at comparison time, and to keep the workflow aligned with the latest supported runtime for the upstream action.
Changes:
- Upgrade
actions/dependency-review-actionfrom v4 to v5.0.0 (pinned by commit SHA). - Enable
retry-on-snapshot-warnings: trueto wait for the base snapshot instead of comparing against an incomplete (zero-snapshot) baseline.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
The
dependency-reviewjob in.github/workflows/security-checks.ymlcompares the dependency snapshot of a PR's base commit against the one of
its head commit. The head snapshot is submitted by the job itself, but the
base snapshot comes from a different workflow run, so it is occasionally
not there yet when the comparison runs. The action then sees zero base
dependencies, reports the entire crate tree (1346 packages) as newly added,
and fails on advisories that already exist on master.
That is what happened in this run:
mio@0.8.10was not introduced by that PR — it is unchanged on master, andthe PR did not touch
Cargo.Bazel.toml.lockat all. Re-running the very samejob later succeeded
with zero additions and no vulnerabilities, without any change to the code
under test.
Changes
retry-on-snapshot-warnings: trueso the action waits for the basesnapshot to show up instead of failing on a comparison it already knows is
incomplete. Note the accompanying
retry-on-snapshot-warnings-timeoutdefaults to 120s, which is left as-is.
v4.9.0tov5.0.0. That major release only moves theruntime from node20 to node24; no inputs were renamed or removed. It also
silences the deprecation warning the old pin emitted, since node20 actions
are already being forced onto node24 by the runner.
v5.0.0requiresActions Runner >= v2.327.1, which the GitHub-hosted runners satisfy.
🤖 Generated with Claude Code