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:
Barrett Ruth 2026-03-03 15:18:20 -05:00 committed by GitHub
parent 09acf0c3fe
commit 71b51746af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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