Skip to content

Commit 20a61df

Browse files
authored
fix(ci): drop unused deployments:write permission from deploy job (#99)
Scorecard Token-Permissions (code-scanning alert #15) flagged the deploy job's job-level `deployments: write`. No step uses GitHub's Deployments API — the `environment: production` record is created by GitHub itself, and wrangler-action deploys to Cloudflare Pages without touching it. The remaining id-token/attestations writes are required by attest-build-provenance.
1 parent f2a6d66 commit 20a61df

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ jobs:
143143
environment: production
144144
permissions:
145145
contents: read
146-
deployments: write
147146
id-token: write
148147
attestations: write
149148
steps:

0 commit comments

Comments
 (0)