Skip to content

ci: drop unused id-token permission from the dev deploy job - #22

Merged
gpmayorga merged 1 commit into
mainfrom
ci/drop-unused-id-token-dev-deploy
Nov 8, 2026
Merged

gpmayorga merged 1 commit into
mainfrom
ci/drop-unused-id-token-dev-deploy

Conversation

@gpmayorga

Copy link
Copy Markdown
Collaborator

Summary

Removes id-token: write from the deploy job in app-build-deploy-dev.yml, and from the caller permission table in the README.

No step in that job, or in the composites it calls, requests an OIDC token:

  • actions/deploy-app deploys with cloudflare/wrangler-action, which authenticates with the Cloudflare API token passed in as a secret.
  • actions/build-app and actions/setup-app only use checkout, setup-node, pnpm setup and the artifact actions.
  • The Lighthouse job (performance-score) has its own permissions: block without id-token.

The grant only widened what a compromised step could do on PR preview and nightly runs. No other workflow in the library grants id-token.

Rollout order

The caller job's permissions: is the ceiling for the called workflow, so the order matters:

  1. Merge this PR first. Callers still grant id-token: write, which is harmless: a ceiling higher than the callee needs is allowed.
  2. Then, in apps-invest and apps-management, one PR each: bump the # lib-pin in deploy-dev.yml to the merged commit and drop id-token: write from its permissions: in the same PR.

Dropping it from a caller before its pin includes this change fails at startup, because the pinned callee would still request a permission the caller no longer grants.

Checks

  • Every workflow and action YAML in the repo parses (PyYAML), and the deploy job now resolves to contents: read, deployments: write.
  • The first-party pin check from lib-ci.yml passes locally.
  • actionlint and yamllint were not run locally; lib-ci runs both on this PR.

Tracked in the DevOps Request Queue ticket "Supply chain follow-ups after the library SHA pin".


Generated by Claude Code

The deploy job in app-build-deploy-dev.yml granted id-token: write, but no
step in it or in the composites it calls requests an OIDC token:
wrangler-action authenticates with the Cloudflare API token, and the
Lighthouse job has its own permissions block. The grant only widened what
a compromised step could do on PR preview runs.

The caller permission table in the README drops it as well. Callers keep
granting it until they bump their lib-pin to this commit; a higher ceiling
than the callee needs is harmless.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QijPQWNepDG9tJ3aYZ9LC
@gpmayorga gpmayorga added the github_actions Pull requests that update GitHub Actions code label Nov 8, 2026 — with Claude

Copy link
Copy Markdown
Collaborator Author

lib-ci shows as failed with zero jobs on this PR. That failure is not from this change: lib-ci.yml has been rejected at startup on every run since #20 merged (run 68 on main, run 69 on #21), because a comment in its Python heredoc contains an empty ${{ }} expression. This PR does not touch lib-ci.yml.

The fix is in #23. Once it merges, this branch gets updated from main so lib-ci runs here.


Generated by Claude Code

@gpmayorga
gpmayorga marked this pull request as ready for review November 8, 2026 12:32
@gpmayorga
gpmayorga requested a review from hieronx as a code owner November 8, 2026 12:32
@gpmayorga
gpmayorga merged commit 46e2ffc into main Nov 8, 2026
@gpmayorga
gpmayorga deleted the ci/drop-unused-id-token-dev-deploy branch November 8, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants