diff --git a/.github/workflows/approve-check.yaml b/.github/workflows/approve-check.yaml index 164063a..5aa8030 100644 --- a/.github/workflows/approve-check.yaml +++ b/.github/workflows/approve-check.yaml @@ -14,8 +14,10 @@ jobs: - name: Check PR labels id: check_labels + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.pull_request.number }} run: | - PR_NUMBER=$(echo "${{ github.event.pull_request.number }}") echo "Checking labels for PR #$PR_NUMBER" # Get the labels on the PR @@ -41,4 +43,4 @@ jobs: - name: Set output if labels are present if: success() - run: echo "All required labels are present." + run: echo "All required labels are present." \ No newline at end of file