ci: set up Go for CodeQL autobuild (#12007)

The workflow relied on a Go toolchain preinstalled on the runner
image; self-hosted runners without setup-go fail at autobuild with
'go: executable file not found'.
This commit is contained in:
Chris Lu authored and GitHub committed 2026-10-23 17:52:50 -07:00
1 parent baf0dd680e
commit 1e0f571e75
1 file changed
+6
+6
View File
@@ -25,6 +25,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: 'go.mod'
cache: ${{ runner.environment == 'github-hosted' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4.39.0