Skip to content

ci: pin third-party actions to commits, read-only token by default - #5

Merged
juwpegatron merged 1 commit into
mainfrom
security/harden-workflows
Nov 26, 2026
Merged

juwpegatron merged 1 commit into
mainfrom
security/harden-workflows

Conversation

@juwpegatron

Copy link
Copy Markdown
Collaborator

Security hardening from the /hone security pass (hone/security/README.md).

  • Third-party actions are pinned to the commit their tag points at today (the tag stays as a comment). A moved or hijacked tag can no longer change what runs here.
  • Workflows that only read the repo get permissions: contents: read, so a compromised step cannot push or publish.
  • .github/dependabot.yml (GitHub Actions only, monthly, one grouped pull request) keeps the pins current.

No step, trigger or secret was changed: the edit is checked to be the same workflow apart from uses: refs and the permissions: key.

@juwpegatron
juwpegatron merged commit 9ce3839 into main Nov 26, 2026
13 checks passed
@juwpegatron
juwpegatron deleted the security/harden-workflows branch November 26, 2026 11:19
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