From 8a539fe20d688e42f40b64d7e0a63729468c891e Mon Sep 17 00:00:00 2001 From: Juan Carlos Blanco Delgado <36451129+juancarlosjr97@users.noreply.github.com> Date: Fri, 9 May 2025 17:43:46 -0400 Subject: [PATCH] Potential fix for code scanning alert no. 10: Code injection Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0e2caee..1229787 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,10 +15,12 @@ jobs: steps: - id: release_options name: Release options + env: + HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }} run: | release_options="--git.tagExclude='*[-]*'" - branch=${{ github.event.workflow_run.head_branch }} + branch="$HEAD_BRANCH" if [ -n "$branch" ] && [ "$branch" = "develop" ]; then release_options="--preRelease=beta"