Skip to content

CodeQL

CodeQL #184

name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '31 10 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: true
matrix:
language: [ 'go' ]
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up go
uses: actions/setup-go@v5.2.0
with:
go-version: ${{ matrix.go-version }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build
run: |
make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3