You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release
What
The runner, which carries out sessions and pushes their results to an outcome branch in git, now checks a repository before using git on it:
A new probe classifies a repository as plain, guarded or none.
Before pushing on release, if git cannot read the .git folder, the branch is not pushed and a warning says "NOT pushed: git could not read the .git".
If the repository looks suspect, the push runs with safe.bareRepository=explicit, a git setting that stops git from using a repository it was not explicitly pointed at.
Switching to and fetching the outcome branch now work out extra git arguments and extra environment settings first, instead of starting git directly.
Failures are logged as [runner:warn] fetch outcome branch not run: and not run:.
Why
This protects runner sessions, including self-hosted ones, against a hostile .git folder placed in a session folder. It also means a push or fetch can now be skipped, so look for these warnings if an outcome branch does not appear.