Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Specify explicit contents: read workflow permissions#2033

Merged
EliahKagan merged 1 commit into
gitpython-developers:maingitpython-developers/GitPython:mainfrom
EliahKagan:gha-permissionsEliahKagan/GitPython:gha-permissionsCopy head branch name to clipboard
May 30, 2025
Merged

Specify explicit contents: read workflow permissions#2033
EliahKagan merged 1 commit into
gitpython-developers:maingitpython-developers/GitPython:mainfrom
EliahKagan:gha-permissionsEliahKagan/GitPython:gha-permissionsCopy head branch name to clipboard

Conversation

@EliahKagan

@EliahKagan EliahKagan commented May 30, 2025

Copy link
Copy Markdown
Member

Specify explicit contents: read workflow permissions

Three CI workflows that need only contents: read permissions and no other permissions did not have explicit permissions set, and would therefore be given default permissions configured for the repository, which might be more expansive than the workflows need.

It is recommended to set explicit workflow permissions. This does that, specifying permissions as pythonpackage.yml already did, and closing three actions/missing-workflow-permissions CodeQL alerts (new since #2032 enabled scanning of GHA workflows).


I'll merge this once I verify that all CI checks still pass.

@EliahKagan EliahKagan marked this pull request as ready for review May 30, 2025 19:44
Three CI workflows that need only `contents: read` permissions and
no other permissions did not have explicit permissions set, and
would therefore be given default permissions configured for the
repository, which might be more expansive than the workflows need.

It is recommended to set explicit workflow permissions [1]. This
does that, specifying permissions as `pythonpackage.yml` already
did, and closing three `actions/missing-workflow-permissions`
CodeQL alerts (new since gitpython-developers#2032 enabled scanning of GHA workflows).

[1]: https://codeql.github.com/codeql-query-help/actions/actions-missing-workflow-permissions/
@EliahKagan EliahKagan merged commit 751cb2d into gitpython-developers:main May 30, 2025
26 checks passed
@EliahKagan EliahKagan deleted the gha-permissions branch May 30, 2025 20:14
EliahKagan added a commit to EliahKagan/gitdb that referenced this pull request May 30, 2025
EliahKagan added a commit to EliahKagan/smmap that referenced this pull request May 30, 2025
EliahKagan added a commit to EliahKagan/gitdb that referenced this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.