Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions .github/workflows/go-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ./...