Skip to content

ci: add explicit permissions to release workflows - #7945

Open
theamitmehra wants to merge 1 commit into
jupyter:mainfrom
theamitmehra:fix/openssf-token-permissions
Open

ci: add explicit permissions to release workflows#7945
theamitmehra wants to merge 1 commit into
jupyter:mainfrom
theamitmehra:fix/openssf-token-permissions

Conversation

@theamitmehra

Copy link
Copy Markdown

What

Adds explicit top-level permissions: contents: read to three release
workflows that were missing permissions blocks entirely:

  • prep-release.yml
  • publish-changelog.yml
  • publish-release.yml

Job-level write permissions are preserved where needed (contents: write
in prep-release, id-token: write in publish-release).

Why

Without explicit permissions, GitHub Actions defaults the GITHUB_TOKEN
to read-write, which is broader than needed. This is flagged as
Token-Permissions (0/10) in the OpenSSF Scorecard.

Relates to #7941

Adds top-level permissions blocks to prep-release.yml,
publish-changelog.yml, and publish-release.yml, which were
missing explicit permissions and defaulting to read-write.

Part of improving OpenSSF Scorecard Token-Permissions score.
Relates to jupyter#7941
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Binder 👈 Launch a Binder on branch theamitmehra/notebook/fix%2Fopenssf-token-permissions

@theamitmehra

Copy link
Copy Markdown
Author

Hi! Could a maintainer please add the appropriate triage label to this PR? I don't have permission to add labels as a first-time contributor. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant