From cbdc0b457ff85f3d9a3162b45417f9298307f1af Mon Sep 17 00:00:00 2001 From: Rubens Farias Date: Wed, 6 Aug 2025 18:50:27 +0200 Subject: [PATCH] Update App Token Workflow to Latest Ref INF-2171 --- .github/workflows/create-release-pr.yaml | 4 ++-- .github/workflows/draft-release.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-release-pr.yaml b/.github/workflows/create-release-pr.yaml index dbb8bea..a94b621 100644 --- a/.github/workflows/create-release-pr.yaml +++ b/.github/workflows/create-release-pr.yaml @@ -23,7 +23,7 @@ jobs: echo "error: version must not start with 'v'." exit 1 - name: Get GitHub app token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 id: app_token with: app-id: ${{ env.APP_ID }} @@ -45,7 +45,7 @@ jobs: git switch -C ${BRANCH} git add . git commit -m "Update version to ${VERSION}" - git push --set-upstream origin --force ${BRANCH} + git push --set-upstream origin --force ${BRANCH} gh pr create --title "Release v${VERSION}" --body "Release prepared for ${VERSION}" env: GH_TOKEN: ${{ steps.app_token.outputs.token }} diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index e948bd9..c371b4e 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -27,7 +27,7 @@ jobs: VERSION="${{ github.event.inputs.version || github.head_ref}}" echo "VERSION=${VERSION##*/v}" >> $GITHUB_ENV - name: Get GitHub app token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 id: app_token with: app-id: ${{ env.APP_ID }}