Skip to content

ci(deploy): top-level contents: read on the self-testing workflow#433

Open
arpitjain099 wants to merge 1 commit into
cloudflare:mainfrom
arpitjain099:ci/add-permissions
Open

ci(deploy): top-level contents: read on the self-testing workflow#433
arpitjain099 wants to merge 1 commit into
cloudflare:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099

Copy link
Copy Markdown

Pins the default GITHUB_TOKEN to read-only for deploy.yml — the workflow that runs the action against test-fixture Workers on PR. All wrangler deploys/deletes use secrets.CLOUDFLARE_API_TOKEN and secrets.CLOUDFLARE_ACCOUNT_ID, so the GitHub token only needs read access to the checkout.

Lines up with the top-level permissions blocks already in release.yml and semgrep.yml. YAML validated locally.

@arpitjain099 arpitjain099 requested review from a team as code owners May 13, 2026 10:45
@arpitjain099 arpitjain099 requested a review from ascorbic May 13, 2026 10:45
@arpitjain099

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@arpitjain099

Copy link
Copy Markdown
Author

Hi @ericclemmons, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

@arpitjain099

Copy link
Copy Markdown
Author

Hello, Just checking in on this. Let me know if anything needs tweaking before it can be considered. Thanks!

The self-testing workflow exercises wrangler-action against
test-fixture Workers using `secrets.CLOUDFLARE_API_TOKEN` and
`secrets.CLOUDFLARE_ACCOUNT_ID`. The default GITHUB_TOKEN is only used
for checkout, so contents: read is sufficient. Matches the top-level
permissions style already used in release.yml and semgrep.yml.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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