forked from litinoveweedle/SmartIR
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.55 KB
/
codeql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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/prettier_action@v4.3
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/markdown-autodocs@v1.0.7
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