Skip to content

CodeQL

CodeQL #83

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
name: "CodeQL"
on:
schedule:
- cron: '0 23 * * 0'
jobs:
analyze:
name: Analyze
permissions:
# required for all workflows
security-events: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# GH Actions runner uses go1.20 by default, so we need to install our own version.
# https://github.com/github/codeql-action/issues/1842#issuecomment-1704398087
- name: Install Go from go.mod
uses: actions/setup-go@v5
with:
go-version-file: go.mod
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
with:
languages: go
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3