Skip to content

chore: make codeql action use golang specified in go.mod #648

chore: make codeql action use golang specified in go.mod

chore: make codeql action use golang specified in go.mod #648

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "44 16 * * 5"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ go ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
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"
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"