ci(digest): auto-approve digest PRs via PAT to satisfy review requirement (#46)
Problem: the main branch ruleset requires 1 approving review, which blocks auto-merge. The GITHUB_TOKEN cannot approve its own PR. Solution: after creating the PR, approve it using DIGEST_PAT (a fine-grained PAT stored as a repo secret), then enable auto-merge. The approval comes from a different actor than the bot, satisfying require_last_push_approval.
This commit is contained in:
parent
09acf0c3fe
commit
71b51746af
1 changed files with 1 additions and 0 deletions
1
.github/workflows/upstream-digest.yml
vendored
1
.github/workflows/upstream-digest.yml
vendored
|
|
@ -43,5 +43,6 @@ jobs:
|
|||
--body "Automated weekly digest of new upstream activity. Triage by updating statuses and notes." \
|
||||
--base main \
|
||||
--head "${BRANCH}")
|
||||
GH_TOKEN="${{ secrets.DIGEST_PAT }}" gh pr review "${PR_URL}" --approve
|
||||
gh pr merge "${PR_URL}" --auto --squash
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue