---
name: "CodeQL"

# yamllint disable-line rule:truthy
on:
  pull_request:
    branches: [main]
  schedule:
    - cron: "30 1 * * 0"

jobs:
  codeql:
    name: Scanning
    runs-on: ubuntu-latest
    steps:
      - name: Check out code from GitHub
        uses: actions/checkout@v6
      - name: Initialize CodeQL
        uses: github/codeql-action/init@v4
      - name: Perform CodeQL Analysis
        uses: github/codeql-action/analyze@v4
