Skip to content

Add explicit workflow permissions for org-level read-only GITHUB_TOKEN default - #760

Merged
lawofcycles merged 1 commit into
opensearch-project:mainfrom
lawofcycles:fix/workflow-permissions
May 17, 2026
Merged

Add explicit workflow permissions for org-level read-only GITHUB_TOKEN default#760
lawofcycles merged 1 commit into
opensearch-project:mainfrom
lawofcycles:fix/workflow-permissions

Conversation

@lawofcycles

Copy link
Copy Markdown
Collaborator

Description

The org-level default permission for GITHUB_TOKEN has been changed to read-only. Workflows that require write access must now explicitly declare permissions: blocks, otherwise they will fail with permission errors.

This PR adds explicit permissions to three workflows that require write access.

  • add-untriaged.yml: issues: write (adding labels to issues)
  • delete_backport_branch.yml: contents: write (deleting merged backport branches)
  • release_drafter.yml: contents: write (creating release drafts), issues: write (creating approval issues)

Issues Resolved

N/A (operational fix in response to org-level security policy change)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
@lawofcycles
lawofcycles merged commit e79843a into opensearch-project:main May 17, 2026
17 of 20 checks passed
@lawofcycles

Copy link
Copy Markdown
Collaborator Author

@Xtansia Thank you for the review!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants