From 2f2689c1fbd43d61f83317ddaf04f1fbcde8b85b Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Thu, 29 Aug 2024 12:20:41 +0200 Subject: [PATCH] fix: update check-labels secret define a explicit github-token so we can re-use the bot token in forked repos --- .github/workflows/check-labels.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml index 0ab000c..4c4b8d2 100644 --- a/.github/workflows/check-labels.yml +++ b/.github/workflows/check-labels.yml @@ -2,6 +2,9 @@ name: Check labels on: workflow_call: + secrets: + github-token: + required: true jobs: main: @@ -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 }} \ No newline at end of file + GH_TOKEN: ${{ secrets.github-token }} \ No newline at end of file