Skip to content

Commit 84a648e

Browse files
authored
Merge pull request #6 from Relaxx422/fix/aikido-security-sast--4047976-wBnt
[Aikido] AI Fix for Template Injection in GitHub Workflows Action
2 parents a412305 + d828638 commit 84a648e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/chango.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ jobs:
2626
persist-credentials: true
2727
- name: Check PR Title
2828
id: check_title
29+
env:
30+
PR_TITLE: ${{ github.event.pull_request.title }}
2931
run: | # zizmor: ignore[template-injection]
30-
if [[ "$(echo "${{ github.event.pull_request.title }}" | tr '[:upper:]' '[:lower:]')" =~ ^bump\ version\ to\ .* ]]; then
32+
if [[ "$(echo "$PR_TITLE" | tr '[:upper:]' '[:lower:]')" =~ ^bump\ version\ to\ .* ]]; then
3133
echo "COMMIT_AND_PUSH=false" >> $GITHUB_OUTPUT
3234
echo "IS_RELEASE_PR=true" >> $GITHUB_OUTPUT
3335
else

0 commit comments

Comments
 (0)