Skip to content

Push CodeQL

Push CodeQL #11

Workflow file for this run

name: "Push CodeQL"
on:
push:
branches: [ "master" ]
schedule:
- cron: "18 4 * * 6"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
security-events: write
strategy:
fail-fast: false
matrix:
language: [ python ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Python files format
uses: psf/black@stable
- name: Check JSON, YAML and MD files format
uses: creyD/[email protected]
with:
dry: True
file_pattern: "*.{json,yaml,md}"
prettier_options: --check
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.X"
- name: Catalog device code files
run: |
python3 test_device_data.py --docs codes/*/*.json
- name: Markdown autodocs
uses: dineshsonachalam/[email protected]
with:
output_file_paths: '[./docs/CLIMATE_CODES.md, ./docs/FAN_CODES.md, ./docs/MEDIA_PLAYER_CODES.md]'
commit_message: Update docs - include valid device files