Repository navigation
ci: drop unused id-token permission from the dev deploy job - #22
Merged
Merged
Conversation
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
Collaborator
Author
|
The fix is in #23. Once it merges, this branch gets updated from Generated by Claude Code |
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
Removes
id-token: writefrom thedeployjob inapp-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-appdeploys withcloudflare/wrangler-action, which authenticates with the Cloudflare API token passed in as a secret.actions/build-appandactions/setup-apponly use checkout, setup-node, pnpm setup and the artifact actions.performance-score) has its ownpermissions:block withoutid-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:id-token: write, which is harmless: a ceiling higher than the callee needs is allowed.# lib-pinindeploy-dev.ymlto the merged commit and dropid-token: writefrom itspermissions: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
deployjob now resolves tocontents: read,deployments: write.lib-ci.ymlpasses locally.lib-ciruns both on this PR.Tracked in the DevOps Request Queue ticket "Supply chain follow-ups after the library SHA pin".
Generated by Claude Code