Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Specify explicitcontents: read workflow permissions#2033

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

EliahKagan
Copy link
Member

@EliahKaganEliahKagan commentedMay 30, 2025
edited
Loading

Specify explicitcontents: read workflow permissions

Three CI workflows that need onlycontents: 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 aspythonpackage.yml already did, and closing threeactions/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.

@EliahKaganEliahKagan marked this pull request as ready for reviewMay 30, 2025 19:44
Three CI workflows that need only `contents: read` permissions andno other permissions did not have explicit permissions set, andwould therefore be given default permissions configured for therepository, which might be more expansive than the workflows need.It is recommended to set explicit workflow permissions [1]. Thisdoes that, specifying permissions as `pythonpackage.yml` alreadydid, and closing three `actions/missing-workflow-permissions`CodeQL alerts (new sincegitpython-developers#2032 enabled scanning of GHA workflows).[1]:https://codeql.github.com/codeql-query-help/actions/actions-missing-workflow-permissions/
@EliahKaganEliahKagan merged commit751cb2d intogitpython-developers:mainMay 30, 2025
26 checks passed
@EliahKaganEliahKagan deleted the gha-permissions branchMay 30, 2025 20:14
EliahKagan added a commit to EliahKagan/gitdb that referenced this pull requestMay 30, 2025
EliahKagan added a commit to EliahKagan/smmap that referenced this pull requestMay 30, 2025
EliahKagan added a commit to EliahKagan/gitdb that referenced this pull requestMay 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@EliahKagan

[8]ページ先頭

©2009-2025 Movatter.jp