Skip to content

fix: adding required permissions to top level and jobs in the workflow#1384

Merged
duglin merged 1 commit intocloudevents:mainfrom
gaganhr94:fix/token-permissions
Apr 19, 2026
Merged

fix: adding required permissions to top level and jobs in the workflow#1384
duglin merged 1 commit intocloudevents:mainfrom
gaganhr94:fix/token-permissions

Conversation

@gaganhr94
Copy link
Copy Markdown
Contributor

Fixes #1383

Currently the score for the Token Permissions is 0 because the top level permissions and a few job level permissions are missing in the workflows. With this change, the score will move to 10, since the workflow jobs will run with the minimal permissions. The PR retains conditions like write only at the job level, where it is necessary.

Proposed Changes

  • Add top-level permissions: contents: read to .github/workflows/release-notes.yaml
  • Add top-level permissions: contents: read to .github/workflows/verify.yaml
  • Additional changes

Release Note

NONE

Signed-off-by: Gagan H R <hrgagan4@gmail.com>
@duglin duglin merged commit 463254c into cloudevents:main Apr 19, 2026
3 checks passed
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.

Improve OSSF Scorecard Token-Permissions check by tightening GitHub Actions permissions

2 participants