diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4f3290f58..b731b1dfd 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -51,7 +51,9 @@ jobs: - name: Install Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # zizmor: ignore[cache-poisoning] v6.3.0 with: - go-version-file: go.mod + # DO NOT MERGE: setup-go can't resolve the "1.27rc2" go.mod + # directive, so pin the release candidate explicitly. + go-version: "1.27.0-rc.2" # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 66b8497e6..d5d42f626 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -31,7 +31,9 @@ jobs: - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: - go-version-file: go.mod + # DO NOT MERGE: setup-go can't resolve the "1.27rc2" go.mod + # directive, so pin the release candidate explicitly. + go-version: "1.27.0-rc.2" cache: true - name: golangci-lint