From 5ed0196e104ccc840876f723788308bbfd8b1301 Mon Sep 17 00:00:00 2001 From: Harley Watson Date: Tue, 25 Feb 2025 10:37:23 +0100 Subject: [PATCH] SDPLAT-26993: use GH_APP for GitHub REST API (#313) * SDPLAT-26993: use GH_APP for GitHub REST API * use app-token output --- .github/workflows/release-drafter.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 6da732b3..91d0ae68 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -27,6 +27,12 @@ jobs: runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.GH_APP_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} + - uses: release-drafter/release-drafter@v6 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}