use go mod version for codeql

This commit is contained in:
Alison Winters 2024-02-28 10:07:03 +08:00
parent f7e13502c0
commit 4c442f5dbb
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ jobs:
with:
fetch-depth: 2
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3