Add GitHub CodeQL analysis to CI workflow (#35)
* chore: add GitHub CodeQL analysis to CI workflow Enable automated security scanning with GitHub CodeQL to detect potential vulnerabilities in Python code. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * chore: run CodeQL analysis on pull requests Co-authored-by: Cursor <cursoragent@cursor.com> * Add checks and statuses read permissions for dependabot auto-merge. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
Cursor
parent
fdf5e08d31
commit
8031389a67
@@ -62,6 +62,19 @@ jobs:
|
|||||||
runs-on: ubuntu-slim
|
runs-on: ubuntu-slim
|
||||||
secrets:
|
secrets:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
github-codeql-analysis:
|
||||||
|
if: >
|
||||||
|
github.event_name == 'push'
|
||||||
|
|| github.event_name == 'pull_request'
|
||||||
|
|| (github.event_name == 'workflow_dispatch' && inputs.workflow == 'lint-and-test')
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
actions: read
|
||||||
|
uses: dceoy/gh-actions-for-devops/.github/workflows/github-codeql-analysis.yml@main # zizmor: ignore[unpinned-uses]
|
||||||
|
with:
|
||||||
|
language: >
|
||||||
|
["python"]
|
||||||
dependabot-auto-merge:
|
dependabot-auto-merge:
|
||||||
if: >
|
if: >
|
||||||
github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
|
github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
|
||||||
@@ -73,5 +86,7 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
actions: read
|
actions: read
|
||||||
|
checks: read
|
||||||
|
statuses: read
|
||||||
with:
|
with:
|
||||||
unconditional: true
|
unconditional: true
|
||||||
|
|||||||
Reference in New Issue
Block a user