ci(digest): approve with GITHUB_TOKEN not PAT (#61)

require_last_push_approval blocks barrettruth from approving their
own push. The bot (GITHUB_TOKEN) approves instead — different actor
from the PAT pusher, satisfying the rule.
This commit is contained in:
Barrett Ruth 2026-03-03 15:52:27 -05:00 committed by GitHub
parent 22d9f521d7
commit 6af0172eb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,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 review "${PR_URL}" --approve
GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" gh pr merge "${PR_URL}" --auto --squash
fi