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
16 changes: 16 additions & 0 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ jobs:
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go-version }}
# Resolve a bare minor (e.g. "1.26") to the newest patch instead of whatever
# the runner toolcache happens to hold, which otherwise pins security scans to
# a stale, vulnerable Go.
check-latest: true
cache-dependency-path: ${{ inputs.working-directory }}/go.mod

- name: Set up Node.js
Expand Down Expand Up @@ -263,6 +267,10 @@ jobs:
uses: actions/setup-go@v7
with:
go-version: ${{ needs.setup.outputs.primary-go-version }}
# Resolve a bare minor (e.g. "1.26") to the newest patch instead of whatever
# the runner toolcache happens to hold, which otherwise pins security scans to
# a stale, vulnerable Go.
check-latest: true
cache-dependency-path: ${{ inputs.working-directory }}/go.mod

- name: Run golangci-lint
Expand Down Expand Up @@ -291,6 +299,10 @@ jobs:
uses: actions/setup-go@v7
with:
go-version: ${{ needs.setup.outputs.primary-go-version }}
# Resolve a bare minor (e.g. "1.26") to the newest patch instead of whatever
# the runner toolcache happens to hold, which otherwise pins security scans to
# a stale, vulnerable Go.
check-latest: true
cache-dependency-path: ${{ inputs.working-directory }}/go.mod

- name: Check formatting
Expand Down Expand Up @@ -354,6 +366,10 @@ jobs:
uses: actions/setup-go@v7
with:
go-version: ${{ needs.setup.outputs.primary-go-version }}
# Resolve a bare minor (e.g. "1.26") to the newest patch instead of whatever
# the runner toolcache happens to hold, which otherwise pins security scans to
# a stale, vulnerable Go.
check-latest: true
cache-dependency-path: ${{ inputs.working-directory }}/go.mod

- name: Run gosec
Expand Down