Skip to content

fix(codeql): isolate persistent runner checkout - #80

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/isolate-codeql-checkout
Aug 6, 2026
Merged

fix(codeql): isolate persistent runner checkout#80
rldyourmnd merged 1 commit into
mainfrom
fix/isolate-codeql-checkout

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Summary

  • isolate GIT_CONFIG_GLOBAL before reusable CodeQL checkout
  • enforce the same canonical pre-checkout contract as other persistent-runner workflows
  • preserve caller permissions, inputs, and runner selection

Threat model

A persistent self-hosted runner may carry an ambient global GitHub Authorization header. actions/checkout adds its scoped token, and Git then sends duplicate Authorization headers. The reusable now selects a job-unique owner-only global Git config before checkout without reading or mutating runner-owned config.

Validation

  • python3 scripts/validate_all.py
  • actionlint
  • uvx zizmor@1.26.1 --persona regular --min-severity low .github/workflows
  • git diff --check

The public repository's self-workflows explicitly remain on ubuntu-latest; no private runner is selected by this PR.

Signed-off-by: rldyourmnd <danil@nddev.it.com>
@rldyourmnd
rldyourmnd merged commit 94f73b1 into main Aug 6, 2026
11 checks passed
@rldyourmnd
rldyourmnd deleted the fix/isolate-codeql-checkout branch August 6, 2026 09:59
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