Skip to content

Security CodeQL

Security CodeQL #906

---
name: Security CodeQL
on:
schedule:
- cron: 0 3 * * *
permissions:
security-events: write
actions: read
contents: read
jobs:
codeql:
if: ${{ ! github.event.repository.private }}
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Dependencies
uses: ./.github/actions/setup-poetry
- name: Initialize CodeQL
uses: github/codeql-action/init@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
with:
languages: python
setup-python-dependencies: false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@d01b25e645295d11d0fbb084a8c5e7546b1e508b # # tag=v2.1.21