Skip to content

Commit

Permalink
fix: update check-labels secret
Browse files Browse the repository at this point in the history
define a explicit github-token so we can re-use the bot token in forked
repos
  • Loading branch information
diogomatsubara committed Aug 29, 2024
1 parent 5223268 commit 2f2689c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Check labels

on:
workflow_call:
secrets:
github-token:
required: true

jobs:
main:
Expand All @@ -21,4 +24,4 @@ jobs:
gh pr comment --repo ${{ github.repository}} ${{ github.event.pull_request.number }} -b "PR missing one of the required labels: **${required_labels[*]}**"
exit 1
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN_WORKFLOW }}
GH_TOKEN: ${{ secrets.github-token }}

0 comments on commit 2f2689c

Please sign in to comment.