fix: scope the auth header to the Gitea server; README trust note
- review.yml and git.push set http.<GITHUB_SERVER_URL>/.extraHeader, so the bot token is sent only to the Gitea server; git.push falls back to the unscoped key when no server is known. - README: a same-repository PR runs the caller workflow from its head, so the safeguards bound PR content, not edits to the caller; drafter: local fails the job. - Tests: the source-grep fetch test is replaced by a behavioral one over a resumed run (fetch ends options, push uses the scoped key); the no-op summary test is dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7783b6e78f
commit
70c762bf8a
7 files changed
+64
-23
No files matched your search
@@ -92,7 +92,8 @@ def _commit_message(inputs: Inputs, month: str) -> str:
|
||||
def _deliver(forge, inputs, base, month, branch, reuse, ident, flags, result, changed, cwd,
|
||||
env):
|
||||
git.commit(changed, _commit_message(inputs, month), ident, cwd)
|
||||
git.push(branch, cwd, env.get("DOCS_REVIEW_BOT_TOKEN"))
|
||||
git.push(branch, cwd, env.get("DOCS_REVIEW_BOT_TOKEN"),
|
||||
env.get("GITHUB_SERVER_URL"))
|
||||
head = git.run(["rev-parse", "HEAD"], cwd).strip()
|
||||
body = render_pr_body(parse_summary(result.text), result, flags, head, changed)
|
||||
title = f"docs: monthly review {month}"
|
||||
|
||||
Reference in new issue
Block a user