Skip to content

Chore/harden GitHub actions 1440 - #1461

Open
Johnpii1 wants to merge 16 commits into
drydocs:mainfrom
Johnpii1:chore/harden-github-actions-1440
Open

Johnpii1 wants to merge 16 commits into
drydocs:mainfrom
Johnpii1:chore/harden-github-actions-1440

Conversation

@Johnpii1

@Johnpii1 Johnpii1 commented Nov 21, 2026 •

Copy link
Copy Markdown

Summary

  • Pinned GitHub Actions dependencies to full commit SHAs with version comments to reduce supply-chain risks from mutable action tags.
  • Added explicit least-privilege permissions to workflows and individual jobs to prevent unnecessary GitHub token access.
  • Added actionlint and zizmor checks to CI so workflow syntax and security issues are detected on pull requests.
  • Kept Dependabot responsible for updating GitHub Actions dependencies and documented the safe SHA update process in CONTRIBUTING.md.

Test plan

  • pnpm lint && pnpm typecheck && pnpm test pass locally
  • Verify all workflow actions use full commit SHAs.
  • Verify workflow permissions follow least privilege.
  • Confirm actionlint and zizmor pass.

Closes #1440
Closes #1441

@vercel

vercel Bot commented Nov 21, 2026

Copy link
Copy Markdown

@Johnpii1 is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 21, 2026

Copy link
Copy Markdown

@Johnpii1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@collinsezedike collinsezedike 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.

@Johnpii1 the ci.yml run on this head never starts. actionlint reports .github/workflows/ci.yml:27:5: key "permissions" is duplicated in "changes" job, previously defined at line 21. Remove the duplicate.

pr-title.yml pins amannn/action-semantic-pull-request@fc7da0cece3e8512e50240b0619a03bdd946db1, which is 39 characters, so the run fails with "shortened version of a commit SHA". Use the full 40-character SHA.

The new github-actions-security.yml installs actionlint from a release tarball with no checksum verification, in the PR meant to remove unverified supply-chain inputs. Verify a pinned SHA-256 before installing it.

The PR title Chore/harden GitHub actions 1440 has no type and fails PR Title. Use ci: harden GitHub Actions with SHA pins and least privilege. All four Test plan items are unchecked, so check them once they pass.

@Johnpii1

Copy link
Copy Markdown
Author

i have fixed it boss
you can now merge
@collinsezedike

@collinsezedike collinsezedike 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.

@Johnpii1 Detect Changes fails with Input parameter 'predicate-quantifier' is set to invalid value 'some-with-excludes'. Valid values: every, some. The dorny/paths-filter SHA 7b450fff21473bca461d4b92ce414b9d0420d706 is older than v4.0.2 and does not support that option, which skips every dependent job. Pin the real v4.0.2 commit.

The new zizmor gate fails on this PR. It reports artipacked warnings because actions/checkout has no persist-credentials: false at ci.yml lines 33, 92 and 114 and elsewhere. Add it to every checkout.

The docs-checks job uses actions/checkout@v7, pnpm/action-setup@v6.1.1, actions/setup-node@v7 and taiki-e/install-action@v2, and has no permissions block. Pin them to full SHAs and add contents: read.

The PR title Chore/harden GitHub actions 1440 has no type. Use ci: harden GitHub Actions with SHA pins and least privilege. Check the Test plan items only once they pass.

This branch has not been deployed

No deployments
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.

[Chore] Expand the load-test suite and add a CI smoke profile [Chore] Harden GitHub Actions with SHA pins and least privilege

2 participants