Skip to content

Hash-pin some action references, add dependency cooldowns#3000

Open
woodruffw wants to merge 5 commits intorust-lang:masterfrom
woodruffw-forks:ww/ci
Open

Hash-pin some action references, add dependency cooldowns#3000
woodruffw wants to merge 5 commits intorust-lang:masterfrom
woodruffw-forks:ww/ci

Conversation

@woodruffw
Copy link
Copy Markdown

This uses pinact run -v to hash-pin some (but not all) of futures-rs's actions dependencies; some of the actions used by the CI are not trivial to pin automatically and require manual consideration (like taiki-e/github-actions/install-rust@nightly).

Separately, I've added cooldown settings to each of the configured Dependabot groups; this won't slow the actual update cadence but will prevent updates until each dependency is at least a week old, which gives security practitioners and scanners a bit of time to discover malware before it can propagate through the ecosystem.

(I've split these into separate commits to hopefully make them easier to review!)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2026
@rustbot

This comment has been minimized.

@taiki-e
Copy link
Copy Markdown
Member

taiki-e commented Apr 6, 2026

Thanks for the PR!

I’ve added zizmor to CI in #3001, so could you rebase to master and remove the unpinned-uses configuration?

I think we can use hash-pin for ones that currently using branch in the same way as taiki-e/github-actions@90dc768.

Also, since Dependabot gets a bit noisy when hash-pin is used, I'd appreciate it if grouped updates could be enabled as well like taiki-e/github-actions@f3fa089.

@woodruffw
Copy link
Copy Markdown
Author

Thanks for the review! Yeah, I'll deconflict and follow your suggestions for the other bits 🙂

Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>

Remove dupes

Signed-off-by: William Woodruff <william@yossarian.net>
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 6, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
Comment thread .github/workflows/ci.yml
- name: Install Rust
uses: taiki-e/github-actions/install-rust@nightly
- uses: taiki-e/setup-cross-toolchain-action@v1
uses: taiki-e/github-actions/install-rust@4defe325132c540b152e731162b9067fab71ec21 # nightly # zizmor: ignore[stale-action-refs]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handling of branches other than main is similar to taiki-e/install-action's @<tool_name> tags and dtolnay/rust-toolchain's @<rust_version> branches, so here I would like to use @<hash> # main and toolchain: nightly.

FYI, I recently documented in the install-action readme why I don’t recommend using hash-pin for this kind of tags/branches:

https://github.com/taiki-e/install-action?tab=readme-ov-file#security

Pinning @<tool_name> tags by hash is strongly discouraged, as it causes the workflow to reference a commit that is not present on the repository when a new version is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants