ci(security): SHA-pin third-party actions, move dev host to secrets - #820
Closed
AndriiPasternak31 wants to merge 1 commit into
Closed
ci(security): SHA-pin third-party actions, move dev host to secrets#820AndriiPasternak31 wants to merge 1 commit into
AndriiPasternak31 wants to merge 1 commit into
Conversation
deploy-dev.yml referenced tailscale/github-action@v2 and appleboy/ssh-action@v1 — both unpinned third-party actions handling TAILSCALE_AUTH_KEY (tailnet join) and DEV_SSH_KEY (sudo SSH on dev host). A single supply-chain hijack (account takeover, malicious forced retag) exfils both credentials on the next push to dev. SHA-pinned to mitigate. Same workflow hardcoded the dev Tailscale CGNAT IP and SSH username in a PUBLIC repo, leaking the dev host's tailnet topology. Moved both to GitHub repo secrets (DEV_HOST, DEV_USER) — must be set before merge or the next deploy fails fast. CLAUDE.md forbids internal addresses in this public tree. While here, SHA-pinned the other two workflows with third-party actions (pypa/gh-action-pypi-publish, google-github-actions/*) for defense in depth. First-party actions/* keep their major-tag pins per GitHub's documented recommendation (GitHub itself signs and re-tags those). After-state: zero unpinned third-party uses: lines across .github/workflows/.
This was referenced May 13, 2026
Contributor
Author
|
Closed by branch rename. Continuation: #826. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
deploy-dev.ymlreferencedtailscale/github-action@v2andappleboy/ssh-action@v1— both unpinned third-party actions handlingTAILSCALE_AUTH_KEY(tailnet join) andDEV_SSH_KEY(sudo SSH on dev host). A single supply-chain hijack (account takeover, malicious forced retag) exfils both credentials on the next push todev. SHA-pinned to mitigate.Same workflow hardcoded the dev Tailscale CGNAT IP and SSH username in a PUBLIC repo, leaking the dev host's tailnet topology. Moved both to GitHub repo secrets (
DEV_HOST,DEV_USER) — must be set in repo secrets before merge or the next deploy fails fast. CLAUDE.md forbids internal addresses in this public tree.While here, SHA-pinned the other two workflows with third-party actions (
pypa/gh-action-pypi-publish,google-github-actions/*) for defense in depth. First-partyactions/*keep their major-tag pins per GitHub's documented recommendation (GitHub itself signs and re-tags those).After-state: zero unpinned third-party
uses:lines across.github/workflows/.What changed
.github/workflows/deploy-dev.yml: SHA-pin tailscale + ssh-action; moveDEV_HOST/DEV_USERto secrets.github/workflows/publish-cli.yml: SHA-pin pypa/gh-action-pypi-publish.github/workflows/sync-docs-to-vertex.yml: SHA-pin google-github-actions/*Required before merge (admin)
Two new repo secrets must be set:
DEV_HOST— the dev tailnet IPDEV_USER— the SSH usernameWithout these, the next
deploy-devrun fails fast (which is the safer failure mode than silently exposing the values in workflow logs).Test plan
v2/v1tag pointers (no version drift).github/workflows/foruses: [^a-z]patterns (no remaining unpinned third-party)Out of scope
This PR was previously bundled into #798 (circuit-breaker fix) — split out for isolated security review.
Companion PR #819 adds Dependabot + CODEOWNERS to keep these SHAs current and gate future changes to
.github/.🤖 Generated with Claude Code