diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8fb4c021d..51e781675 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -20,19 +20,23 @@ on: - '**/*.yml' - '**/*_test.go' +permissions: + actions: read + contents: read + security-events: write + +env: + GO_VERSION: 1.19 + jobs: analyze: name: Analyze runs-on: 'ubuntu-latest' - permissions: - actions: read - contents: read - security-events: write - strategy: fail-fast: false matrix: - language: [go] + language: + - go steps: - @@ -42,8 +46,8 @@ jobs: name: Set up Go uses: actions/setup-go@v4 with: - go-version-file: go.mod - check-latest: true + go-version: ${{ env.GO_VERSION }} + cache: true - name: Initialize CodeQL uses: github/codeql-action/init@v2