fix(compat): commit email must match git_admin's Gitea record (gitea@local.domain)
All checks were successful
addon-qualify / qualify (push) Successful in 12s
All checks were successful
addon-qualify / qualify (push) Successful in 12s
This commit is contained in:
@@ -147,12 +147,15 @@ jobs:
|
|||||||
rm -rf compat-bootstrap/per-major
|
rm -rf compat-bootstrap/per-major
|
||||||
|
|
||||||
# Author identity must match a real Gitea user — the
|
# Author identity must match a real Gitea user — the
|
||||||
# branch-protection pre-receive hook calls GetUserByID against
|
# branch-protection pre-receive hook calls GetUserByEmail
|
||||||
# the committer email and rejects with "Internal Server Error"
|
# against the committer and rejects with "Internal Server
|
||||||
# (uid=-2) when no match exists. compat-seeder doesn't have a
|
# Error" (uid=-2) when no match exists. The COMPAT_PUSH_TOKEN
|
||||||
# Gitea account; the COMPAT_PUSH_TOKEN is git_admin's anyway,
|
# belongs to git_admin, whose canonical Gitea email is
|
||||||
# so commit + push under that identity for a clean audit trail.
|
# `gitea@local.domain` (the install default — NOT the address
|
||||||
git config user.email "m@havari.me"
|
# in .credentials.md, which never made it onto the user
|
||||||
|
# record). Commit + push under that identity for a clean
|
||||||
|
# audit trail.
|
||||||
|
git config user.email "gitea@local.domain"
|
||||||
git config user.name "git_admin"
|
git config user.name "git_admin"
|
||||||
|
|
||||||
if [ ! -f compat-bootstrap/seeded-ci.json ]; then
|
if [ ! -f compat-bootstrap/seeded-ci.json ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user