Skip to content

ci: enforce hash-pinned GitHub Actions - #303

Merged
setchy merged 4 commits into
mainfrom
copilot/enforce-workflow-hash-pins-20261029
Oct 29, 2026
Merged

setchy merged 4 commits into
mainfrom
copilot/enforce-workflow-hash-pins-20261029

Conversation

@setchy

@setchy setchy commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Use a discoverable .github/zizmor.yml policy that requires hash-pin for actions, with only the exact trusted Renovate validator reusable-workflow path allowed to use ref-pin.
  • Move the Renovate validator call from its stale commit SHA and misleading # main comment to @main.
  • Set contents: read on the calling job because the shared reusable workflow checks out the consumer repository; this keeps the validator at least privilege.

Rollout dependency

Merge gitify-app/renovate-config#20 first. electron-menubar inherits the shared preset; no duplicate local pinDigests rule is added.

Validation

  • zizmor 1.31.1 reports no findings on the changed validator workflow and no unpinned-uses finding for its trusted ref.
  • Comparing the full zizmor scan to the unchanged workflow baseline shows all other findings are unchanged: 33 unpinned action findings, one dangerous-triggers finding, and one self-repository finding.
  • Ruby YAML parser: all workflow, config, and lock YAML files parse.
  • gh actions-lock --verify and --verify-local: all workflows have complete lockfile coverage; third-party workflow refs and the lockfile are unchanged from main.

setchy and others added 3 commits October 29, 2026 11:41
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@setchy
setchy marked this pull request as ready for review October 29, 2026 18:37
@setchy
setchy requested a review from afonsojramos as a code owner October 29, 2026 18:37
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@setchy
setchy merged commit f25b68f into main Oct 29, 2026
28 checks passed
@setchy
setchy deleted the copilot/enforce-workflow-hash-pins-20261029 branch October 29, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant