---
name: "CodeQL"

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

jobs:
  codeql:
    name: Scanning
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      security-events: write
    steps:
      - name: ⤵️ Check out code from GitHub
        uses: actions/checkout@v6.0.2
      - name: 🏗 Initialize CodeQL
        uses: github/codeql-action/init@v4.32.6
      - name: 🚀 Perform CodeQL Analysis
        uses: github/codeql-action/analyze@v4.32.6
