Skip to content

Improve prometheus metrics generation reliability #39

Improve prometheus metrics generation reliability

Improve prometheus metrics generation reliability #39

Workflow file for this run

# This workflow runs a CodeQL analysis on the c++ code for all relevant build configurations.
name: "C++ CodeQL"
on:
push:
paths:
- src/**
- include/**
- lib/**
- shared/**
- platformio.ini
- .github/workflows/codeql-cpp.yml
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
# The platform io environments to test
env: [ 'esp32dev_debug', 'esp_wroom_02_debug' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install Platform IO
run: pip install -U platformio
- name: Create crdential files
run: |
echo "OTA Password" > otapass.txt
echo "WiFi SSID" > wifissid.txt
echo "WiFi Passphrase" > wifipass.txt
echo "MQTT Username" > mqttuser.txt
echo "MQTT Password" > mqttpass.txt
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Build using platformio
run: pio run -e ${{ matrix.env }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3