ci: signed release provenance, pinned dependencies, security scanning

- Release files get a SHA256SUMS file and a Sigstore-signed build
  provenance attestation (gh attestation verify).
- The workflows read the repo only. A new release job, which runs no
  build tools, is the only one that can write: it uploads the files with
  gh and pushes the version bump. The third-party release actions are gone.
- Every action is pinned to a commit SHA, esptool and the libraries to
  exact versions. The release tag reaches the shell through env, and
  set_version.sh rejects tags that aren't versions.
- New workflows: CodeQL (C++ via the native build, JS, Python, Actions),
  OpenSSF Scorecard, zizmor. Dependabot moves the action pins.
- SECURITY.md: private reporting, checking a download. README badges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cjkas 2026-10-31 13:27:48 +01:00
parent 8c7a2dee12
commit 5c57d1a2cd
9 changed files with 306 additions and 77 deletions

View file

@ -21,11 +21,13 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
framework = arduino
; Unit tests only run on the PC: pio test -e native
test_ignore = *
; Exact versions: a new release of a library only gets into the firmware
; through a PR that bumps it here.
lib_deps =
bblanchon/ArduinoJson@^7.2.2
knolleary/PubSubClient@^2.8
esp32async/ESPAsyncWebServer@^3.12.1
esp32async/AsyncTCP@^3.5.0
bblanchon/ArduinoJson@7.4.3
knolleary/PubSubClient@2.8
esp32async/ESPAsyncWebServer@3.12.1
esp32async/AsyncTCP@3.5.0
extra_scripts =
pre:app_version.py
pre:minify.py
@ -155,7 +157,7 @@ test_framework = unity
test_build_src = yes
build_src_filter = -<*> +<Utils.cpp> +<ConfigRecords.cpp> +<MqttDisco.cpp> +<SomfyFrame.cpp> +<JsonFormatter.cpp> +<ShadeMotion.cpp> +<ShadeSensors.cpp> +<ShadeBehaviour.cpp> +<PulseDecoder.cpp> +<TxBuffer.cpp> +<RadioScheduler.cpp> +<ShadeRequests.cpp> +<entryPoints/MqttCommands.cpp> +<ItemSnapshot.cpp> +<ModelEditor.cpp> +<ShadeChanges.cpp> +<ProtoSchema.cpp> +<ProtoFrame.cpp> +<ProtoSync.cpp> +<ProtoParse.cpp> +<ProtoSlots.cpp> +<ProtoOps.cpp> +<ProtoEdits.cpp> +<ProtoSettings.cpp> +<ProtoAssembly.cpp>
lib_deps =
bblanchon/ArduinoJson@^7.2.2
bblanchon/ArduinoJson@7.4.3
build_flags =
-std=gnu++17
-Isrc