Skip to content

Use the right token when checking out external forks #9829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

penalosa
Copy link
Contributor

@penalosa penalosa commented Jul 2, 2025

No description provided.

@penalosa penalosa requested a review from a team as a code owner July 2, 2025 16:48
@penalosa penalosa added the skip-pr-description-validation Skip validation of the required PR description format label Jul 2, 2025
Copy link

changeset-bot bot commented Jul 2, 2025

⚠️ No Changeset found

Latest commit: 0c238c4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

pkg-pr-new bot commented Jul 2, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@9829

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@9829

miniflare

npm i https://pkg.pr.new/miniflare@9829

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@9829

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@9829

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@9829

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@9829

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@9829

wrangler

npm i https://pkg.pr.new/wrangler@9829

commit: 0c238c4

Copy link
Member

@dario-piotrowicz dario-piotrowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why the change? 🤔

The workflow already has contents: read under permissions, is that not enough to checkout the repo? 🫤

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Jul 2, 2025
@penalosa
Copy link
Contributor Author

penalosa commented Jul 2, 2025

Can you explain why the change? 🤔

The workflow already has contents: read under permissions, is that not enough to checkout the repo? 🫤

It's enough to checkout the repo, yeah, but it's not enough to push to the repo. Checking out with the token means that the later push has permission

@penalosa penalosa added this pull request to the merge queue Jul 2, 2025
Merged via the queue into main with commit af4f027 Jul 2, 2025
35 of 36 checks passed
@penalosa penalosa deleted the penalosa-patch-15 branch July 2, 2025 20:58
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Jul 2, 2025
@petebacondarwin
Copy link
Contributor

@dario-piotrowicz - see 28ecf85#diff-900be2a000a3c8e9022554fe17d14efc73ea31b1e7ee16052bcc166b9411ed42R19

@dario-piotrowicz
Copy link
Member

Can you explain why the change? 🤔
The workflow already has contents: read under permissions, is that not enough to checkout the repo? 🫤

It's enough to checkout the repo, yeah, but it's not enough to push to the repo. Checking out with the token means that the later push has permission

Sorry I totally missed your reply 😓

What I was saying is that you were adding the token for the checkout step... that's why I am not getting why it is needed 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-pr-description-validation Skip validation of the required PR description format
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants