GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fork-ci: reused self-hosted workspace keeps .git/config from earlier PR jobs · Issue #83 · scuttletoby/t3code

fork-ci: reused self-hosted workspace keeps .git/config from earlier PR jobs #83

New issue
Copy link
New issue
Copy link
Closed
#382
Closed
fork-ci: reused self-hosted workspace keeps .git/config from earlier PR jobs#83
#382
Copy link
Labels
bugSomething is broken or behaving incorrectly.

Description

@scuttletoby
scuttletoby
opened on Nov 14, 2026
Issue body actions

Problem. A self-hosted runner that reuses its workspace keeps .git between jobs. An earlier job of the same PR runs PR code in that checkout and can write .git/config entries that actions/checkout does not reset, for example core.fsmonitor (a command git runs during checkout's own git calls) or attr.tree=HEAD plus a merge driver. A later job then runs PR code before or inside the head check, even though no step in that job runs PR code first. The head check's safe git settings (GIT_SAFE, core.attributesFile=/dev/null) do not cover attr.tree, and the checkout problem check looks at untrusted files, not at the git config.

Failing case. Job 1 (PR code) runs git config core.fsmonitor 'sh -c "..."' in the workspace. Job 2 (head check) runs actions/checkout: git runs the command.

Fix options.

  1. Wipe .git (or the whole workspace) before checkout on self-hosted runners. This is the simplest.
  2. Run every fork-ci git call with a fixed config: GIT_CONFIG_GLOBAL=/dev/null, GIT_CONFIG_NOSYSTEM=1, plus -c overrides or a check that .git/config has only known keys.

Doing both is safest.

Risk. This existed before the head-check action and sits outside the "unread push" threat model. It matters as soon as a runner takes PRs from people who are not trusted.

Found by a correctness review of a project PR that adopted fork-ci/actions/head-check.

🤖 Generated with Claude Code

Activity

  1. scuttletoby
    added
    bugSomething is broken or behaving incorrectly.
    on Nov 14, 2026
  2. scuttletoby
    closed this as completedin #382on Nov 17, 2026
  3. scuttletoby
    added 8 commits that reference this issue on Nov 18, 2026

    docs(fork): gate trust, what the head gate proves and the owner's ste…

    790b17e

    fork-ci: clean .git and fixed git config before checkout on self-host…

    c79e782

    docs(fork): gate trust, what the head gate proves and the owner's ste…

    bce8607

    fork-ci: clean .git and fixed git config before checkout on self-host…

    5db2339

    docs(fork): gate trust, what the head gate proves and the owner's ste…

    23e570d

    fork-ci: clean .git and fixed git config before checkout on self-host…

    71ed104

    docs(fork): gate trust, what the head gate proves and the owner's ste…

    eeba9c1

    fork-ci: clean .git and fixed git config before checkout on self-host…

    1b9c2e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.