Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
ci(release): scope SIGNPATH_API_TOKEN to a dedicated signing environment (#3704)
Maximilian Roosaa988b37bb5b
diff --git a/.github/CLAUDE.md b/.github/CLAUDE.mdindex 38a7e7d40..ca94a9a6b 100644--- a/.github/CLAUDE.md+++ b/.github/CLAUDE.md@@ -25,8 +25,17 @@ Only the repo owner (`@max-sixty`, admin) can merge to `main`.## Environment protection-`AUR_SSH_PRIVATE_KEY` is in a protected GitHub Environment (`release`) requiring-deployment approval from `@max-sixty`, restricted to `v*` tags.+Release credentials live in GitHub Environments so no other workflow the repo+runs can read them. Each environment holds what one phase needs, since a job+that joins an environment can read every secret in it:++| Environment | Secret | Read by |+|-------------|--------|---------|+| `release` | `AUR_SSH_PRIVATE_KEY` | `publish-aur` |+| `signing` | `SIGNPATH_API_TOKEN` | `build-local-artifacts` |++Both restrict deployments to `v*` tags and neither has a reviewer rule, so+joining a job to one costs no approval step.crates.io publishing holds no stored token — it uses Trusted Publishing.crates.io mints a short-lived one only for an OIDC claim from `release.yaml`diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yamlindex 5e9ef87db..d235ba761 100644--- a/.github/workflows/release.yaml+++ b/.github/workflows/release.yaml@@ -115,6 +115,13 @@ jobs:matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }}runs-on: ${{ matrix.runner }}container: ${{ matrix.container && matrix.container.image || null }}+ # This job doesn't deploy anything; the environment scopes+ # SIGNPATH_API_TOKEN so it isn't readable by every workflow the repo runs.+ # It is deliberately not `release`, which also holds the publish+ # credentials — see .github/CLAUDE.md. The `v*` tag policy means setting+ # `pr-run-mode = "upload"` in dist-workspace.toml would make GitHub reject+ # this job on a PR ref.+ environment: signingenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json