From 980507480b355381bf5034d5b6254ff03da548bd Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 15 Feb 2026 16:25:43 +0100 Subject: [PATCH] CI security hardening: prevent template injection in wheels workflow (#163073) --- .github/workflows/wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index fb9761b4893..9964d36aded 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -53,7 +53,7 @@ jobs: - name: Create requirements_diff file run: | - if [[ ${{ github.event_name }} =~ (schedule|workflow_dispatch) ]]; then + if [[ "${GITHUB_EVENT_NAME}" =~ (schedule|workflow_dispatch) ]]; then touch requirements_diff.txt else curl -s -o requirements_diff.txt https://raw.githubusercontent.com/home-assistant/core/master/requirements.txt