From d8e7fa983dc50931baedf7b29c118ce70002be65 Mon Sep 17 00:00:00 2001 From: Dustin Decker Date: Wed, 5 Jun 2024 16:46:58 -0400 Subject: [PATCH] Go should be installed before codeql initializes (#2919) --- .github/workflows/codeql-analysis.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ab6c60738163..975eec5548b1 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 .