diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 6656bd1..33cc4fe 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -17,7 +17,7 @@ jobs: with: fetch-depth: 0 # PAT required: GITHUB_TOKEN tag pushes don't trigger other workflows - token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} + token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} - name: Compute next calver tag id: calver @@ -38,7 +38,7 @@ jobs: - name: Create and push tag env: - GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edb7622..69d5755 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,13 +50,13 @@ jobs: needs: [test, worker] runs-on: macos-latest env: - GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} + token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} - name: Setup Go uses: actions/setup-go@v5 @@ -113,6 +113,6 @@ jobs: version: latest args: release --clean --config /tmp/.goreleaser.yaml --release-notes /tmp/release-notes.md env: - GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }} WK_CLIENT_ID: ${{ secrets.WK_CLIENT_ID }} WK_CLIENT_SECRET: ${{ secrets.WK_CLIENT_SECRET }}