Repository navigation
ci(security): SHA-pin third-party actions, move dev host to secrets - #820
Closed
AndriiPasternak31 wants to merge 1 commit into
Closed
AndriiPasternak31 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. |
vybe
pushed a commit
that referenced
this pull request
Oct 24, 2026
…blings (Abilityai/trinity-enterprise#949) (#3901) * fix(files): sweep the #820 policy's remaining runs-code and secret siblings (trinity-enterprise#949) Follow-up to ent#820 / #3776. The merge-train review and /cso sweep left these at the share tier; one-line policy additions per the 421bbc3 recipe, both copies byte-identical: - RUNS_CODE (owner-tier write, never an agent key's): .bash_aliases (sourced by Debian's .bashrc), .config/pip/pip.conf, .pip/pip.conf and .npmrc (pip install --user / npm read them at boot as the agent, so a written index-url reaches .local/lib one hop earlier), and .gemini/extensions/** and .gemini/commands/** (Gemini CLI loads them, extensions declare MCP server commands, and it runs with --yolo). - secret-class read: .npmrc, .pypirc, .config/rclone/rclone.conf, .terraform.d/credentials.tfrc.json, .bash_history, .zsh_history. - the agent server's PUT of the home itself: a named 400 "Not a file", as mkdir and DELETE answer, instead of the 500 its missing parent raised. Items 1, 2 and 7 (nested instruction files, bare repos not named *.git, the KEY tier listing hidden dirs) wait for a ruling, asked on the issue. Mutations: the dev policy turns the 12 new census rows red; removing the PUT guard turns both new cases back into 500s. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(files): pin the six ent#949 secret-file patterns in the reviewed read-only set The six new SECRET_FILE_CLASS_PATTERNS join _OWNER_TIER_READ_ONLY_PATTERNS (owner tier to read, still owner-writable), which the test pins as a literal. Fixes the 7 regression-diff failures in test_files_protected_paths. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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