Skip to content

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

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1009984670
Nov 11, 2026
Merged

copybara-service[bot] merged 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.

@copybara-service
copybara-service Bot force-pushed the test_1009984670 branch 2 times, most recently from 4c98572 to 07692f3 Compare November 11, 2026 17:15
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: 1019252156
@copybara-service
copybara-service Bot merged commit cfaedd1 into master Nov 11, 2026
4 checks passed
@copybara-service
copybara-service Bot deleted the test_1009984670 branch November 11, 2026 17:19
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