Skip to content

CodeQL

CodeQL #1078

name: "CodeQL"
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
paths:
- demo/**
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 repository
uses: actions/checkout@v4
- name: Setup Go 1.22
uses: actions/setup-go@v5
with:
go-version: '^1.22'
cache-dependency-path: |
demo/go.sum
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v3
with:
working-directory: demo
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3