Skip to content

Commit

Permalink
Merge pull request #259 from komish/derive-approver-token
Browse files Browse the repository at this point in the history
use a separate approval token for the sandbox repository workflow
  • Loading branch information
komish authored Sep 15, 2023
2 parents 867352c + 84728ae commit 5d9a609
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ jobs:
if: ${{ steps.check_report.conclusion == 'success' }}
uses: hmarr/auto-approve-action@v3
with:
github-token: ${{ secrets.BOT_TOKEN }}
# The token we use for this changes for the Sandbox repository because the sandbox repository
# receives PRs from the openshift-helm-charts-bot, and that same bot cannot approve its own
# PRs which breaks workflows. Instead, for the Sandbox repo, we approve with the GHA bot.
github-token: ${{ github.repository == 'openshift-helm-charts/sandbox' && secrets.GITHUB_TOKEN || secrets.BOT_TOKEN }}

- name: Merge PR
id: merge_pr
Expand Down

0 comments on commit 5d9a609

Please sign in to comment.