Backport checkout validation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Francesco Renzi
2026-12-01 10:47:26 +01:00
parent d23441a48e
commit b53d71c9c6
5 changed files with 250 additions and 14 deletions

View File

@@ -7,6 +7,7 @@
- Improved credential security: `persist-credentials` now stores credentials in a separate file under `$RUNNER_TEMP` instead of directly in `.git/config`
- No workflow changes required — `git fetch`, `git push`, etc. continue to work automatically
- Running authenticated git commands from a [Docker container action](https://docs.github.com/actions/sharing-automations/creating-actions/creating-a-docker-container-action) requires Actions Runner [v2.329.0](https://github.com/actions/runner/releases/tag/v2.329.0) or later
- Verifies explicit SHA pins in fork pull request `workflow_run` workflows against trusted workflow history. The checkout token requires `contents: read`.
# Checkout v5