Skip to content

Commit

Permalink
Use setup-go action before codeql (#5963)
Browse files Browse the repository at this point in the history
So the go version used is kept up to date, to prevent actions warnings

Signed-off-by: Sunjay Bhatia <[email protected]>
  • Loading branch information
sunjayBhatia authored Nov 14, 2023
1 parent dba50bc commit c1b1e0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
schedule:
- cron: '0 10 * * 1'

env:
GOPROXY: https://proxy.golang.org/
GO_VERSION: 1.21.3
jobs:
CodeQL-Build:

Expand All @@ -29,6 +32,11 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ github.job }}-go-
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down

0 comments on commit c1b1e0a

Please sign in to comment.