Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ inputs:
go-version:
description: The Go version to download.
default: stable
go-version-file:
description: go.mod/go.work file to read the Go version from (takes precedence over go-version when set).
default: ""
cache:
description: Enable caching Go modules and build outputs,
default: "true"
Expand All @@ -35,6 +38,7 @@ runs:
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.go-version-file }}
check-latest: true
cache: ${{ inputs.cache }}
cache-dependency-path: |
Expand Down
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ updates:
cooldown:
default-days: 7

# Keep the Windows base images (nanoserver/servercore) on their latest digest: scans
# every Dockerfile (except vendored), bumps the digest only (tag kept), one grouped PR.
# Keep the test base images (nanoserver/servercore + golang) current: scans every
# Dockerfile (except vendored), digest/patch bumps only (major/minor ignored), one grouped PR.
- package-ecosystem: "docker"
directories:
- "/**/*"
Expand All @@ -57,6 +57,8 @@ updates:
# image names exactly as they appear in the PR (e.g. "Updates windows/nanoserver ...").
- dependency-name: "windows/nanoserver"
- dependency-name: "windows/servercore"
# golang toolchain base image used by the test images (Docker Hub official image)
- dependency-name: "golang"
ignore:
# keep the tag stable and only bump the digest / patch level.
- dependency-name: "*"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
with:
# sometimes go cache causes issues when linting
cache: false
# Lint with the module's target Go (go.mod), not the newest "stable" Go: a new
# Go release otherwise outpaces the pinned golangci-lint and breaks linting.
go-version: ""
go-version-file: go.mod

- name: Run golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
Expand Down