Skip to content

ci: pin GitHub Actions and restrict permissions - #94

Merged
m4tx merged 1 commit into
mainfrom
improve-actions
Oct 21, 2026
Merged

m4tx merged 1 commit into
mainfrom
improve-actions

Conversation

@m4tx

@m4tx m4tx commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@m4tx
m4tx added this pull request to stack #95 October 20, 2026 11:42
@m4tx
m4tx marked this pull request as ready for review October 20, 2026 11:45
@m4tx
m4tx requested a review from qwandor October 20, 2026 11:45
Comment thread .github/workflows/rust.yml Outdated

- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
uses: taiki-e/install-action@cac6346340546319497bf24d4d54239150229f11 # cargo-hack

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does this work if cargo-hack is updated to a new version?

@m4tx m4tx Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I looks like it does, as the action doesn't pin the version of cargo-hack, so it should always install the latest one: taiki-e/install-action@taiki-e:8cca091...taiki-e:cac6346

To be quite honest, specifying the tool to install via action commit sha sounds sort of like an anti-pattern anyway, so I've modified the change to use the "regular" install-action version and specify cargo-hack as an action parameter instead. Thanks for pointing this out!

@m4tx
m4tx merged commit 592afa2 into main Oct 21, 2026
31 checks passed
@m4tx
m4tx deleted the improve-actions branch October 21, 2026 09:56
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