Skip to content

Harden tensorflow-recommenders workflows against token theft and command injection. - #779

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_1009985416
Nov 11, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_1009985416

Conversation

@copybara-service

Copy link
Copy Markdown

Harden tensorflow-recommenders workflows against token theft and command injection.

Crafted pull request filenames can inject shell commands via inline workflow expressions and harvest persisted runner tokens.

  • Restrict permissions to contents: read and disable checkout credential persistence in test.yaml and pylint-presubmit.yml.
  • Pass changed file lists via CHANGED_FILES in pylint-presubmit.yml.

…and injection.

Crafted pull request filenames can inject shell commands via inline workflow expressions and harvest persisted runner tokens.

- Restrict permissions to `contents: read` and disable checkout credential persistence in `test.yaml` and `pylint-presubmit.yml`.
- Pass changed file lists via `CHANGED_FILES` in `pylint-presubmit.yml`.

PiperOrigin-RevId: 1019249971
@copybara-service
copybara-service Bot merged commit 8135474 into main Nov 11, 2026
4 of 5 checks passed
@copybara-service
copybara-service Bot deleted the test_1009985416 branch November 11, 2026 17:16
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