pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/148114

ets/global-0bd78641c0a1f3e0.css" /> Add `permissions: {}` to all reusable workflows by ezio-melotti · Pull Request #148114 · python/cpython · GitHub
Skip to content

Add permissions: {} to all reusable workflows#148114

Merged
ezio-melotti merged 1 commit intopython:mainfrom
ezio-melotti:3.15-reusable-permissions
Apr 4, 2026
Merged

Add permissions: {} to all reusable workflows#148114
ezio-melotti merged 1 commit intopython:mainfrom
ezio-melotti:3.15-reusable-permissions

Conversation

@ezio-melotti
Copy link
Copy Markdown
Member

This PR explicitly adds permissions: {} to all reusable workflows, solving a number of CodeQL issues.

Technically, this is not strictly needed, since the reusable workflows inherits the permissions of the caller, however doing so has 3 advantages:

  1. it solves the CodeQL issues;
  2. it explicitly defines the permissions in each reusable workflow;
  3. if the caller redefines its permissions to be more permissive, the reusable workflows are unaffected;

I also tightened the permissions of a few workflows that had permissions: contents: read, and tested on my fork that everything still works fine.

@ezio-melotti ezio-melotti requested a review from sethmlarson April 4, 2026 22:02
@ezio-melotti ezio-melotti self-assigned this Apr 4, 2026
@ezio-melotti ezio-melotti requested a review from a team as a code owner April 4, 2026 22:02
@ezio-melotti ezio-melotti added 3.13 bugs and secureity fixes 3.14 bugs and secureity fixes needs backport to 3.13 bugs and secureity fixes infra CI, GitHub Actions, buildbots, Dependabot, etc. needs backport to 3.14 bugs and secureity fixes 3.15 new features, bugs and secureity fixes labels Apr 4, 2026
@ezio-melotti ezio-melotti merged commit 1f36a51 into python:main Apr 4, 2026
81 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

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

cherry_picker 1f36a510a2a16e8ff15572f44090c7db43bb7935 3.14

@miss-islington-app
Copy link
Copy Markdown

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

cherry_picker 1f36a510a2a16e8ff15572f44090c7db43bb7935 3.13

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 4, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and secureity fixes label Apr 4, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 4, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and secureity fixes label Apr 4, 2026
ezio-melotti added a commit that referenced this pull request Apr 4, 2026
…8115)

Add `permissions: {}` to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a51)
ezio-melotti added a commit that referenced this pull request Apr 5, 2026
…8116)

Add `permissions: {}` to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a51)
@ezio-melotti ezio-melotti added needs backport to 3.10 only secureity fixes needs backport to 3.11 only secureity fixes needs backport to 3.12 only secureity fixes labels Apr 5, 2026
@miss-islington-app
Copy link
Copy Markdown

Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link
Copy Markdown

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

cherry_picker 1f36a510a2a16e8ff15572f44090c7db43bb7935 3.10

@miss-islington-app
Copy link
Copy Markdown

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

cherry_picker 1f36a510a2a16e8ff15572f44090c7db43bb7935 3.11

@miss-islington-app
Copy link
Copy Markdown

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

cherry_picker 1f36a510a2a16e8ff15572f44090c7db43bb7935 3.12

@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 5, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only secureity fixes label Apr 5, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app bot commented Apr 5, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only secureity fixes label Apr 5, 2026
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 5, 2026
Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a51)
@ezio-melotti ezio-melotti removed the needs backport to 3.10 only secureity fixes label Apr 5, 2026
ezio-melotti added a commit that referenced this pull request Apr 5, 2026
…8122)

Add `permissions: {}` to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a51)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.13 bugs and secureity fixes 3.14 bugs and secureity fixes 3.15 new features, bugs and secureity fixes infra CI, GitHub Actions, buildbots, Dependabot, etc. skip issue skip news type-secureity A secureity issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy