Skip to content

Harden actions workflows - #450

Merged
matt-graham merged 9 commits into
mainfrom
mscroggs/zizmor
Dec 3, 2026
Merged

matt-graham merged 9 commits into
mainfrom
mscroggs/zizmor

Conversation

@mscroggs

@mscroggs mscroggs commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Made various updates to the Actions workflows as suggested by zizmor:

  • Use hashes, not version numbers: resolves Harden GitHub Action workflows #417
  • Added dependabot cooldown
  • Added persist-credentials: false
  • Added job names where these were not set
  • Add concurrency settings to all workflows that did not have them
  • Added stricter permissions to workflows

zizmor --pedantic now finds no issues when run locally. We could add a new workflow that runs zizmor, but maybe this is unnecessary?

Branch protections may need updating to reflect the name changes due to adding names to workflows that did not have them...

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@mscroggs mscroggs added this to the v1.6 milestone Nov 19, 2026

@matt-graham matt-graham left a comment

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.

Thanks @mscroggs this is great to have ticked off. Everything looks sensible to me - thanks for also dealing with adding the concurrency settings uniformly, this was something I kept noticing but failing to action!

We currently don't have any required checks set so name changes shouldn't break anything but we probably should and also move from classic branch protection to rulesets.

@ASKabalan the changes here I think will conflict with updates to build workflow in #442. In terms of staging of these we can either aim to get that PR in first then resolve conflicts here or merge this in first. I don't have a strong preference.

@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.98%. Comparing base (22692a7) to head (b78d724).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #450   +/-   ##
=======================================
  Coverage   96.98%   96.98%           
=======================================
  Files          36       36           
  Lines        3577     3577           
=======================================
  Hits         3469     3469           
  Misses        108      108           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matt-graham matt-graham mentioned this pull request Dec 1, 2026
@ASKabalan

Copy link
Copy Markdown
Collaborator

@ASKabalan the changes here I think will conflict with updates to build workflow in #442. In terms of staging of these we can either aim to get that PR in first then resolve conflicts here or merge this in first. I don't have a strong preference.

I can merge here and resolve conflicts my self if that is fine by @mscroggs

@matt-graham

Copy link
Copy Markdown
Collaborator

@ASKabalan - I just messaged Matt to ask similar but then realised he is busy with something else this week, so I've went ahead and resolved merge. Running zizmor --pedantic locally after merge didn't flag any issues in default offline mode but did flag one remaining issue when running in online mode due to lack of version comment on github-repo-stats Action usage in stats.yml workflow file. I'll push a fix for this and then if all checks pass this can hopefully go in.

@matt-graham
matt-graham merged commit 72dd21a into main Dec 3, 2026
22 checks passed
@matt-graham
matt-graham deleted the mscroggs/zizmor branch December 3, 2026 17:45
@matt-graham

Copy link
Copy Markdown
Collaborator

@all-contributors please add @mscroggs for security, infra

@allcontributors

Copy link
Copy Markdown
Contributor

@matt-graham

I've put up a pull request to add @mscroggs! 🎉

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.

Harden GitHub Action workflows

3 participants