mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-02-28 13:49:57 +00:00
This PR is to update the GitHub Workflows and Actions to resolve residual warnings and errors and using the latest versions available.
51 lines
949 B
YAML
51 lines
949 B
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
|
|
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@v6
|
|
|
|
- name: Initialize CodeQL
|
|
id: init-codeql
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Perform CodeQL Analysis
|
|
id: perform-codeql-analysis
|
|
uses: github/codeql-action/analyze@v4
|