Skip to content

gate: no commit by a test identity, and spinpropose writes no git config - #33

Merged
aledbf merged 1 commit into
mainfrom
authors-gate
Nov 13, 2026
Merged

aledbf merged 1 commit into
mainfrom
authors-gate

Conversation

@aledbf

@aledbf aledbf commented Nov 13, 2026

Copy link
Copy Markdown
Member

Follow-up to spin-stack/spin#1196 and spin-stack/go-tools#104. A test in spin wrote ana@corp.example into a checkout's .git/config, and every commit made after that carried it to GitHub.

  • task gate runs testidentity -base origin/main, which go tool task puts on PATH from go-tools' latest release (v20261113.01). It fails on a commit since main whose raw author or committer address is at a reserved domain, has no dot, or appears in this tree's tests or fixtures. The failure says how to fix it. GitHub's noreply and bot addresses pass.
  • CI's Gate checkout uses fetch-depth: 0 so origin/main is in the clone on a pull request.
  • The one test that mentions git is hack/spinpropose. Its test runs no git, because every command goes to the fake. The code it tests did run git config user.name/user.email on whatever checkout it ran in, though, which makes every later commit there the app's. It now commits as the app with -c on that one commit, and the test asserts that no git config is run.

Checked: go tool task gate passes, and go test ./hack/... passes.

🤖 Generated with Claude Code

A test in spin wrote git's author into the checkout's config, and every commit after it was the
test's, on GitHub. The gate now runs go-tools' testidentity over the branch's commits since
origin/main - a reserved-domain address, one with no dot, or one this tree's tests spell - so
such a commit stops here. CI's Gate fetches the history it reads.

spinpropose set the app's name and address with git config, on the checkout it ran in: every
commit made there after it was the app's. It commits as the app with -c on that commit alone,
and its test holds that no git config is run. Its tests run no git: every command goes to the
fake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit cde2cee into main Nov 13, 2026
3 checks passed
@aledbf
aledbf deleted the authors-gate branch November 13, 2026 06:36
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