From d6cf8e5f392817f6336d6642c4bd0bb4041fe18b Mon Sep 17 00:00:00 2001 From: Manuel Ganter Date: Wed, 4 Feb 2026 14:57:56 +0100 Subject: [PATCH] fix(ci): unset GITHUB_TOKEN via shell before running goreleaser --- .github/workflows/ci.yaml | 13 +++++++++---- .github/workflows/release.yaml | 12 ++++++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4b0c987..8647689 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,9 +26,14 @@ jobs: - name: Test run: make test - - name: GoReleaser Check + - name: Install GoReleaser uses: https://github.com/goreleaser/goreleaser-action@v5 - env: - GITHUB_TOKEN: "" with: - args: release --snapshot --skip=publish --clean + install-only: true + + - name: GoReleaser Check + run: | + unset GITHUB_TOKEN + goreleaser release --snapshot --skip=publish --clean + env: + GORELEASER_CURRENT_TAG: v0.0.0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9f06634..6dcaced 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,11 +25,15 @@ jobs: with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.GPG_PASSPHRASE }} - - name: Run GoReleaser + - name: Install GoReleaser uses: https://github.com/goreleaser/goreleaser-action@v5 + with: + install-only: true + + - name: Run GoReleaser + run: | + unset GITHUB_TOKEN + goreleaser release --clean env: - GITHUB_TOKEN: "" GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} - with: - args: release --clean