Skip to content

Commit

Permalink
Ensure backport action uses correct GitHub token (#18)
Browse files Browse the repository at this point in the history
Following #17, [backport PRs
are being raised by
`github-actions`](hazelcast/hazelcast-mono#3669),
rather than using the specified `GH_TOKEN`.
  • Loading branch information
JackPGreen authored Dec 3, 2024
1 parent 013f934 commit 85587e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/backport/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ runs:
exit 1
fi
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.GITHUB_TOKEN }}

- name: Backport
shell: ${{ env.shell }}
Expand All @@ -60,7 +60,7 @@ runs:
--non-interactive \
${{ inputs.BACKPORT_OPTIONS }}
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.GITHUB_TOKEN }}

- name: Report errors
shell: ${{ env.shell }}
Expand All @@ -84,4 +84,4 @@ runs:
--repo ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} \
--body "❌ [Failed to backport](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}), change must be manually backported."
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.GITHUB_TOKEN }}

0 comments on commit 85587e8

Please sign in to comment.