Skip to content

Find, verify, and analyze leaked credentials

Go should be installed before codeql initializes (#2919)

Dustin Deckerd8e7fa983dc5
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index ab6c60738..975eec554 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -39,7 +39,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
-
+ - name: Install Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: "1.22"
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
@@ -49,10 +52,6 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- - name: Install Go
- uses: actions/setup-go@v5
- with:
- go-version: "1.22"
- name: Smoke
run: |
go build .