Skip to content

Add top-level permissions blocks to release workflows - #7942

Open
goelakash wants to merge 1 commit into
jupyter:mainfrom
goelakash:chore/scorecard-token-permissions
Open

Add top-level permissions blocks to release workflows#7942
goelakash wants to merge 1 commit into
jupyter:mainfrom
goelakash:chore/scorecard-token-permissions

Conversation

@goelakash

@goelakash goelakash commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

The three release workflows (prep-release, publish-release, publish-changelog) had no top-level permissions block, so jobs inherited the broad workflow default. Adds an explicit permissions: contents: read at the top of each (least-privilege default). publish-changelog also gets a matching job-level read since the actual write goes through the GitHub App token, not GITHUB_TOKEN.

Improves the OpenSSF Scorecard Token-Permissions check, currently 0/10:
https://scorecard.dev/viewer/?uri=github.com%2Fjupyter%2Fnotebook

Refs #7941

The three release workflows (prep-release, publish-release,
publish-changelog) had no top-level permissions block, so jobs
inherited the broad workflow default. Adds an explicit
top-level `permissions: contents: read` (least-privilege default),
and a job-level read in publish-changelog since the actual write
goes through the GitHub App token, not GITHUB_TOKEN.

Improves the OpenSSF Scorecard Token-Permissions check, currently
0/10 (https://scorecard.dev/viewer/?uri=github.com%2Fjupyter%2Fnotebook).

Refs jupyter#7941
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Binder 👈 Launch a Binder on branch goelakash/notebook/chore%2Fscorecard-token-permissions

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