Skip to content

Commit 0dee959

Browse files
committed
🤖 ci: remove duplicate Go version input in govulncheck step
Use `go-version-input` for `golang/govulncheck-action` instead of `go-version-file` to avoid setup-go warnings about both version input modes being set. --- _Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.09`_ <!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.09 -->
1 parent 1eba173 commit 0dee959

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,20 @@ jobs:
9898
- name: Run golangci-lint formatter checks
9999
run: go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0 fmt --diff
100100

101+
- name: Detect Go version from go.mod
102+
id: govulncheck-go-version
103+
run: |
104+
GO_VERSION="$(awk '/^go / { print $2; exit }' go.mod)"
105+
if [ -z "$GO_VERSION" ]; then
106+
echo "assertion failed: expected go.mod to contain a go directive" >&2
107+
exit 1
108+
fi
109+
echo "value=$GO_VERSION" >> "$GITHUB_OUTPUT"
110+
101111
- name: Run govulncheck
102112
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1
103113
with:
104-
go-version-file: go.mod
114+
go-version-input: ${{ steps.govulncheck-go-version.outputs.value }}
105115
go-package: ./...
106116

107117
test:

0 commit comments

Comments
 (0)