CodeQL #2697
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For most projects, this workflow file will not need changing; you simply need to commit it to your repository. | |
# | |
# You may wish to alter this file to override the set of languages analyzed, or to provide custom queries or build logic. | |
name: "CodeQL" | |
on: | |
push: | |
branches: [ master, stable ] | |
pull_request: | |
branches: [ master, stable ] | |
schedule: | |
- cron: '0 15 * * 6' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'go' ] # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# We must fetch at least the immediate parents so that if this is a pull request then we can checkout the head | |
fetch-depth: 2 | |
# Initializes the Golang environment for the CodeQL tools. | |
# https://github.com/github/codeql-action/issues/1842#issuecomment-1704398087 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |