Skip to content

Commit

Permalink
ci(codeql-analysis): fix the workflow by using go1.21
Browse files Browse the repository at this point in the history
This workflow has been failing for a while because it's been using
go1.20, which is incompatible with the go.mod file generated by go1.21
:/.

I found this solution from:
github/codeql-action#1842 (comment).
  • Loading branch information
ctlong committed Sep 29, 2023
1 parent 8835a34 commit 2bf8e76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

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

0 comments on commit 2bf8e76

Please sign in to comment.