Skip to content

Security CodeQL

Security CodeQL #781

---
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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Dependencies
uses: ./.github/actions/setup-poetry
- name: Initialize CodeQL
uses: github/codeql-action/init@429e1977040da7a23b6822b13c129cd1ba93dbb2 # v3.26.2
with:
languages: python
setup-python-dependencies: false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5c681efc3f71cd6b47b1c14583c9e86913966e9f # # tag=v2.1.21