Run actions/setup-go before CodeQL in Github workflow.

The golang codeql has been failing for 4 months now. It is because CodeQL was
running with Go 1.20.14, but go.mod specifies v1.21.1.

PiperOrigin-RevId: 607007356
This commit is contained in:
Ayush Ranjan
2024-02-14 09:18:13 -08:00
committed by gVisor bot
parent f479112719
commit e56225db03
+5
View File
@@ -41,6 +41,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- if: ${{ matrix.language == 'go' }}
uses: actions/setup-go@v3.5.0
with:
go-version-file: 'go.mod'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2