Skip to content

pin workflow action versions to sha hash, tighten permissions#499

Open
chuckadams wants to merge 6 commits into
release_1.4.1from
github_action_hero
Open

pin workflow action versions to sha hash, tighten permissions#499
chuckadams wants to merge 6 commits into
release_1.4.1from
github_action_hero

Conversation

@chuckadams
Copy link
Copy Markdown
Contributor

@chuckadams chuckadams commented May 18, 2026

Not sure if this should even be in the release branch, given the nature of it, but I'll let someone else decide that. At any rate, they can't be tested until they land in main.

Rationale here: https://github.com/orgs/fairpm/discussions/226#discussioncomment-16965503

  • Pins most actions to SHA hashes, except for a couple that stubbornly refuse to be pinned that way (that's happened to me on other projects, I couldn't tell you why)
  • Adds permission restrictions wherever they're missing (most actions already had them).
  • Removes some interpolations from if: clauses, since they're regarded as syntax errors, though in these cases GH does DWIM them anyway so the change is just cosmetic.
  • Sets persist-credentials in the checkout action to false, except where the git CLI is used.

Several actions did get version upgrades as part of the pinning, but I don't think any of our actions are actually backward-incompatible.

Signed-off-by: Chuck Adams <chaz@chaz.works>
Signed-off-by: Chuck Adams <chaz@chaz.works>
Signed-off-by: Chuck Adams <chaz@chaz.works>
Signed-off-by: Chuck Adams <chaz@chaz.works>
Signed-off-by: Chuck Adams <chaz@chaz.works>
@chuckadams chuckadams requested review from Ipstenu, cdils and costdev May 18, 2026 15:06
@github-actions
Copy link
Copy Markdown
Contributor

Signed-off-by: Chuck Adams <chaz@chaz.works>
@chuckadams chuckadams force-pushed the github_action_hero branch from bf136c1 to 21e9741 Compare May 18, 2026 16:15
joedolson
joedolson previously approved these changes May 18, 2026
@kasparsd
Copy link
Copy Markdown
Contributor

Do we mind merging this in after #493 since they both touch the CI yaml files (to reduce conflicts).

@chuckadams chuckadams changed the base branch from release_1.5.0 to release_1.4.1 May 22, 2026 14:14
@chuckadams chuckadams dismissed joedolson’s stale review May 22, 2026 14:14

The base branch was changed.

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.

3 participants