From c9b79d448ae64b1f821fd3f08fae22664a0b65be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thor=20Anker=20Kvisg=C3=A5rd=20Lange?= Date: Tue, 29 Apr 2025 10:39:14 +0200 Subject: [PATCH] chore: Only do gorelease config check on CI --- .github/workflows/go-ci.yaml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/go-ci.yaml b/.github/workflows/go-ci.yaml index 743ccc1..4b968de 100644 --- a/.github/workflows/go-ci.yaml +++ b/.github/workflows/go-ci.yaml @@ -81,17 +81,7 @@ jobs: with: distribution: goreleaser version: "~> v2" - install-only: true - - - name: Run GoReleaser healthcheck - run: goreleaser healthcheck - - - name: Check GoReleaser config - run: goreleaser check - - - name: Run GoReleaser dry-run - if: inputs.run-release-test - run: goreleaser release --snapshot --skip=publish --clean + args: check vuln-scan: runs-on: ubuntu-latest @@ -109,12 +99,16 @@ jobs: ignore-unfixed: true vuln-type: "library" + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: Setup private repository access if: inputs.go-private != '' run: git config --global url."https://${{ secrets.gh_username }}:${{ secrets.gh_token }}@github.com".insteadOf "https://github.com" - name: Run govulncheck - uses: golang/govulncheck-action@v1 - with: - repo-checkout: false - go-version-file: go.mod + run: | + go install golang.org/x/vuln/cmd/govulncheck@latest + govulncheck -format text ./...