name: "CodeQL" on: push: branches: [dev, main] paths-ignore: - "app/lightning/impl/protos/**" pull_request: # The branches below must be a subset of the branches above branches: [dev, main] paths-ignore: - "app/lightning/impl/protos/**" schedule: - cron: "20 11 * * 4" # allow triggering manually from the Actions tab / gh workflow run workflow_dispatch: jobs: analyze: name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: # 'actions' scans the GitHub Actions workflows themselves language: ["python", "actions"] steps: - name: Checkout repository uses: actions/checkout@v7 - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} # exclude generated protobuf code from analysis config: | paths-ignore: - app/lightning/impl/protos - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: category: "/language:${{ matrix.language }}"