From fae184d5ccf0bebf3e2d6bd4bcd34e40a905ee65 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 7 Jul 2023 13:31:54 -0500 Subject: [PATCH] fix(release-notifications): use app token for authentication (#14150) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/release-notifications.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-notifications.yml b/.github/workflows/release-notifications.yml index 7487bfb59bb4..783405e85080 100644 --- a/.github/workflows/release-notifications.yml +++ b/.github/workflows/release-notifications.yml @@ -11,12 +11,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@main + - name: Generate token + uses: tibdex/github-app-token@v1 + id: generate_token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Add release information on pull requests uses: ./actions/release-notifications with: - GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} OWNER: 'carbon-design-system' REPO_NAME: 'carbon' enabled: true - env: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}