From f9404f290a9f145e85eaac1050d134fa4e3886aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Wed, 25 Oct 2023 13:54:15 +0200 Subject: [PATCH] Fix use of GitHub token --- .github/workflows/release.yml | 6 +++--- .github/workflows/test.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfa434e..c689449 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: uses: anothrNick/github-tag-action@1.67.0 id: version env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true DEFAULT_BUMP: patch - name: Major version tag @@ -33,7 +33,7 @@ jobs: if: ${{ (steps.version.outputs.new_tag != '') }} uses: ncipollo/release-action@v1 with: - token: ${{ github.token }} + token: ${{ secrets.GITHUB_TOKEN }} allowUpdates: true generateReleaseNotes: true tag: ${{ steps.major-version.outputs.tag }} @@ -42,7 +42,7 @@ jobs: if: ${{ (steps.version.outputs.new_tag != '') }} uses: ncipollo/release-action@v1 with: - token: ${{ github.token }} + token: ${{ secrets.GITHUB_TOKEN }} generateReleaseNotes: true tag: ${{ steps.version.outputs.new_tag }} name: Release ${{ steps.version.outputs.new_tag }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16161ae..76bc6c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,5 +26,5 @@ jobs: - name: JSTS Quality uses: ./ with: - github_token: ${{ github.token }} + github_token: ${{ secrets.GITHUB_TOKEN }} working_directory: ./test