Skip to content

ci: move workflows off the departed maintainer's personal token - #43

Merged
wtgustafson merged 1 commit into
mainfrom
ci/drop-personal-token
Jul 21, 2026
Merged

ci: move workflows off the departed maintainer's personal token#43
wtgustafson merged 1 commit into
mainfrom
ci/drop-personal-token

Conversation

@wtgustafson

Copy link
Copy Markdown
Collaborator

What: Move all CI workflows off secrets.GH_TOKEN (a personal token owned by a maintainer who left IHME) to the built-in GITHUB_TOKEN, with explicit least-privilege permissions:.

Why: build_docs's "Deploy docs" step (mkdocs gh-deploy) fails on every merge because the dead personal token can't push gh-pages. The same token also gated dependencies.yml and cookiecutter.yml.

Changes

  • build_docs.yml: drop the checkout token:, add permissions: contents: write; fix a malformed job if: (}} or {{ → single ||).
  • alternative_workflows/build_docs.yml: same swap (inert — not under .github/workflows/; consistency only).
  • dependencies.yml: → GITHUB_TOKEN + permissions. Monthly auto PR still opens but won't auto-trigger CI (re-run manually).
  • cookiecutter.yml: → GITHUB_TOKEN + permissions; daily schedule: removed; template-sync retired (GITHUB_TOKEN can't open workflow-editing PRs) with a revival recipe in a top-of-file comment.

Consequences (accepted): docs deploy fixed; dependency auto-PRs lose auto-CI; cookiecutter template-sync retired — revival tracked in CLIMATE-24 (needs a non-personal org/App token).

Verification: local YAML parse + pre-commit/kacl clean; CI actionlint validates the fixed if:. Docs deploy is only exercisable on GitHub — will confirm via a workflow_dispatch build_docs run after merge.

Supersedes #36 (its token-swap intent; #36's stale src edits are already on main via #41/#42). Relates to #31.

🤖 Generated with Claude Code

build_docs (docs deploy) authenticated with secrets.GH_TOKEN — a personal
token that died when its owner left IHME — so mkdocs gh-deploy failed on
every merge. Switch all workflows to the built-in GITHUB_TOKEN with explicit
least-privilege permissions:
- build_docs: drop the checkout token, add contents:write so gh-deploy can
  push gh-pages; fix a malformed job `if:` expression.
- dependencies: GITHUB_TOKEN + contents/pull-requests write. Its auto PR still
  opens but no longer triggers CI (re-run manually).
- cookiecutter: GITHUB_TOKEN + permissions, drop the daily schedule, and
  document that template-sync is retired (GITHUB_TOKEN can't edit workflows);
  revival recipe + tracking in CLIMATE-24.

Verified locally: YAML parses, pre-commit/kacl clean. The docs-deploy fix is
only exercisable on GitHub (no local harness) — to be confirmed via a
workflow_dispatch build_docs run after merge.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 21, 2026
@wtgustafson
wtgustafson requested a review from rmbarber July 21, 2026 21:45
@wtgustafson
wtgustafson merged commit 5a0ef5e into main Jul 21, 2026
9 checks passed
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.

1 participant