Files
python-kasa/.github/workflows/codeql-analysis.yml

53 lines
1.1 KiB
YAML

---
name: CodeQL Checks
on:
push:
branches:
- master
- patch
pull_request:
branches:
- master
- patch
- 'feat/**'
- 'fix/**'
- 'janitor/**'
schedule:
- cron: '44 17 * * 3'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
env:
CODEQL_ACTION_FILE_COVERAGE_ON_PRS: true
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [python]
steps:
- name: Checkout Source Files
id: checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
id: init-codeql
uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
id: perform-codeql-analysis
uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1