name: CodeQL
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "30 1 * * 0"
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/init@v3
with:
languages: go
- run: |
make build
- uses: github/codeql-action/analyze@v3