FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Default GHA permissions to `contents: read` by hugovk · Pull Request #148346 · python/cpython · GitHub

Repository navigation

Default GHA permissions to contents: read - #148346

Merged
hugovk merged 2 commits into
python:mainfrom
hugovk:3.15-gha-contents-read
Apr 11, 2026
Merged

hugovk merged 2 commits into
python:mainfrom
hugovk:3.15-gha-contents-read

Conversation

hugovk commented Apr 10, 2026

Copy link
Copy Markdown
Member

Follow on from #148114, so GitHub Actions can run in private forks:

#148114 (comment)

hugovk commented Apr 10, 2026

Copy link
Copy Markdown
Member Author

build.yml failed in my fork:

Invalid workflow file: .github/workflows/build.yml#L608 The workflow is not valid. .github/workflows/build.yml (Line: 608, Col: 3): Error calling workflow 'hugovk/cpython/.github/workflows/reusable-cifuzz.yml@a959dde4ca2a991f711a79b2c94f0cf2bf127b0a'. The workflow is requesting 'contents: read', but is only allowed 'contents: none'.

https://github.com/hugovk/cpython/actions/runs/24252340106

I think this will pass when merged, because it won't have the mismatch between main and the branch?

Copy link
Copy Markdown
Member

@hugovk you may want to adjust line 616

hugovk commented Apr 10, 2026

Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Member

Yep, add contents: read there. The calling workflow sets contents: none but the reusable one wants higher privileges, which is what that error is about.

hugovk commented Apr 11, 2026

Copy link
Copy Markdown
Member Author

Thanks, better now: https://github.com/hugovk/cpython/actions/runs/24280156057?pr=148346

hugovk merged commit 9c9df8a into python:main Apr 11, 2026
91 checks passed
hugovk deleted the 3.15-gha-contents-read branch April 11, 2026 15:37

Copy link
Copy Markdown

Thanks @hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11, 3.12, 3.13, 3.14.
🐍🍒⛏🤖

Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9c9df8ac8cbb8f539b3f342d01e40b7a0a57dcbf 3.14

Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9c9df8ac8cbb8f539b3f342d01e40b7a0a57dcbf 3.13

Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9c9df8ac8cbb8f539b3f342d01e40b7a0a57dcbf 3.12

Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9c9df8ac8cbb8f539b3f342d01e40b7a0a57dcbf 3.11

Copy link
Copy Markdown

Sorry, @hugovk, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 9c9df8ac8cbb8f539b3f342d01e40b7a0a57dcbf 3.10

hugovk added a commit to hugovk/cpython that referenced this pull request Apr 11, 2026
(cherry picked from commit 9c9df8a)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

bedevere-app Bot commented Apr 11, 2026

Copy link
Copy Markdown

GH-148386 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Apr 11, 2026

bedevere-app Bot commented Apr 11, 2026

Copy link
Copy Markdown

GH-148387 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Apr 11, 2026

bedevere-app Bot commented Apr 11, 2026

Copy link
Copy Markdown

GH-148388 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Apr 11, 2026
hugovk added a commit to hugovk/cpython that referenced this pull request Apr 11, 2026
(cherry picked from commit 9c9df8a)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
hugovk added a commit to hugovk/cpython that referenced this pull request Apr 11, 2026
(cherry picked from commit 9c9df8a)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

bedevere-app Bot commented Apr 11, 2026

Copy link
Copy Markdown

GH-148389 is a backport of this pull request to the 3.11 branch.

bedevere-app Bot removed the needs backport to 3.11 only security fixes label Apr 11, 2026

bedevere-app Bot commented Apr 11, 2026

Copy link
Copy Markdown

GH-148391 is a backport of this pull request to the 3.10 branch.

gpshead pushed a commit that referenced this pull request Apr 12, 2026
gpshead pushed a commit that referenced this pull request Apr 12, 2026
hugovk added a commit that referenced this pull request Apr 12, 2026
hugovk added a commit that referenced this pull request Apr 12, 2026
hugovk added a commit that referenced this pull request Apr 12, 2026
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
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

Labels

infra CI, GitHub Actions, buildbots, Dependabot, etc. skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL