Skip to content

Commit

Permalink
chore: make codeql action use golang specified in go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
fnaranjo-vmw committed Feb 9, 2024
1 parent ca39a81 commit 2746f0d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ jobs:
language: [ 'go' ]

steps:
- uses: actions/setup-go@v5
with:
go-version: '1.22.0'
- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -42,6 +39,12 @@ jobs:
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
queries: +security-and-quality

# Install golang used by this project (https://github.com/github/codeql-action/issues/1842)
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- run: make build

- name: Perform CodeQL Analysis
Expand Down

0 comments on commit 2746f0d

Please sign in to comment.