name: CodeQL on: push: branches: [main] pull_request: branches: [main] # Skip CodeQL for docs-only PRs (Markdown/MDX and the docs site tree) to # save CI minutes. Not a required check, so skipping cannot block merge. # `push` to main and the weekly schedule keep full coverage regardless. paths-ignore: - '**/*.md' - '**/*.mdx' - 'docs/**' schedule: - cron: "0 6 * * 1" permissions: contents: read security-events: write actions: read jobs: analyze: if: github.repository == 'Tracer-Cloud/opensre' name: Analyze (python) runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: python build-mode: none config-file: .github/codeql/codeql-config.yml queries: security-and-quality - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: category: /language:python