Skip to content

Commit

Permalink
Go should be installed before codeql initializes (trufflesecurity#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-decker authored Jun 5, 2024
1 parent ce1ce29 commit d8e7fa9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 .
Expand Down

0 comments on commit d8e7fa9

Please sign in to comment.