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
@@ -135,7 +135,8 @@ def _deliver(forge, inputs, args, docs_pr, ident, flags, result, changed, cwd, e
|
||||
branch = docs_branch(args.number)
|
||||
git.commit(changed, f"docs({inputs.workstream}): proposed edits (#{args.number})",
|
||||
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"))
|
||||
body = render_pr_body(parse_summary(result.text), result, flags, args.head_sha, changed)
|
||||
if docs_pr is not None:
|
||||
forge.edit_pr(docs_pr["number"], body=body)
|
||||
|
||||
Reference in new issue
Block a user