Fix: prevent script injection in release.yml via env-var indirection (#8) Fix: prevent script injection in release.yml via env-var indirection The release.yml workflow interpolated untrusted workflow_dispatch inputs (github.event.inputs.version_number and .commit_id) directly into run: shell commands. An attacker able to trigger the workflow could inject arbitrary shell via these inputs (ACAT rule acat-guru/GithubWorkflowIdentifier, CWE-94 GitHub Actions expression injection, SEV_3). Fix binds the untrusted inputs to job-level env: vars and references them as “VERSIONNUM"/"VERSION_NUM" / "VERSIONNUM"/"COMMIT_ID” inside run: blocks, so values are passed through the shell environment instead of being expanded into the script text. This mirrors the repo’s existing safe pattern in the clean-existing-tag-and-release job. add-sbom-and-tag-commit: add env VERSION_NUM, COMMIT_ID create-zip: add env VERSION_NUM replace all github.event.inputs interpolations in run: blocks with quoted env-var references No functional change to workflow behavior. github.actor lines and the clean-existing-tag-and-release job are unchanged. Ref: ticket V2283451955 Harden github.actor in release.yml via env-var indirection Binds github.actor to job-level GH_ACTOR env var and references “$GH_ACTOR” in the Configure git identity step, completing removal of raw github-context interpolation from all run: blocks (defense-in-depth beyond the 6 ACAT findings). Reference ticket V2283451955.
Fix: prevent script injection in release.yml via env-var indirection (#8)
The release.yml workflow interpolated untrusted workflow_dispatch inputs (github.event.inputs.version_number and .commit_id) directly into run: shell commands. An attacker able to trigger the workflow could inject arbitrary shell via these inputs (ACAT rule acat-guru/GithubWorkflowIdentifier, CWE-94 GitHub Actions expression injection, SEV_3).
Fix binds the untrusted inputs to job-level env: vars and references them as “VERSIONNUM"/"VERSION_NUM" / "VERSIONNUM"/"COMMIT_ID” inside run: blocks, so values are passed through the shell environment instead of being expanded into the script text. This mirrors the repo’s existing safe pattern in the clean-existing-tag-and-release job.
No functional change to workflow behavior. github.actor lines and the clean-existing-tag-and-release job are unchanged.
Ref: ticket V2283451955
Binds github.actor to job-level GH_ACTOR env var and references “$GH_ACTOR” in the Configure git identity step, completing removal of raw github-context interpolation from all run: blocks (defense-in-depth beyond the 6 ACAT findings). Reference ticket V2283451955.
Common IO - BLE provides an abstraction layer which offer a common set of APIs to control the device, perform GAP and GATT operations.
bt_hal_manager.h : Contains the interface to control the Bluetooth device, perform device discovery operations and other connectivity related tasks.
bt_hal_manager_adapter_ble.h : Contains the interface for the GAP API functions that are specific to BLE.
bt_hal_manager_adapter_classic.h : Contains the interface to control BT classic functionalities of a device.
bt_hal_gatt_server.h : Contains the interface to use Bluetooth GATT server feature.
bt_hal_gatt_client.h : Contains the interface to use Bluetooth GATT client feature.
bt_hal_avsrc_profile.h : Contains the interface for A2DP Source profile for the local device.
See CONTRIBUTING.md for information on contributing.
See SECURITY for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Common IO - BLE
Common IO - BLE provides an abstraction layer which offer a common set of APIs to control the device, perform GAP and GATT operations.
bt_hal_manager.h : Contains the interface to control the Bluetooth device, perform device discovery operations and other connectivity related tasks.
bt_hal_manager_adapter_ble.h : Contains the interface for the GAP API functions that are specific to BLE.
bt_hal_manager_adapter_classic.h : Contains the interface to control BT classic functionalities of a device.
bt_hal_gatt_server.h : Contains the interface to use Bluetooth GATT server feature.
bt_hal_gatt_client.h : Contains the interface to use Bluetooth GATT client feature.
bt_hal_avsrc_profile.h : Contains the interface for A2DP Source profile for the local device.
Contributing
See CONTRIBUTING.md for information on contributing.
Security
See SECURITY for more information.
License
This library is licensed under the MIT-0 License. See the LICENSE file.