Skip to content

Harden model-optimization labeler workflow token permissions. - #1311

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1009984670
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1009984670

Conversation

@copybara-service

Copy link
Copy Markdown

Harden model-optimization labeler workflow token permissions.

Privileged pull_request_target workflows without explicit permission scoping expose a write-capable token to untrusted pull request events.

  • Restrict labeler.yml permissions to contents: read and pull-requests: write.

Privileged `pull_request_target` workflows without explicit permission scoping expose a write-capable token to untrusted pull request events.

- Restrict `labeler.yml` permissions to `contents: read` and `pull-requests: write`.

PiperOrigin-RevId: 1009984670
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