Skip to content

Commit

Permalink
properly set go version for codeql scans (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhammond authored Nov 13, 2023
1 parent 81e8a64 commit b98c363
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- if: matrix.language == 'go'
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -57,8 +63,6 @@ jobs:
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
with:
go-version: '1.21'

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand Down

0 comments on commit b98c363

Please sign in to comment.