From a41a8897b99c3a9ced5f4077b64e70522af37232 Mon Sep 17 00:00:00 2001 From: Jorge <46056498+jorgectf@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:17:52 +0100 Subject: [PATCH] Merge pull request from GHSA-xp96-pghg-87vx --- .github/workflows/autoclose-issues.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autoclose-issues.yml b/.github/workflows/autoclose-issues.yml index 3d8b20fc2ab7..94d2172766ad 100644 --- a/.github/workflows/autoclose-issues.yml +++ b/.github/workflows/autoclose-issues.yml @@ -12,11 +12,13 @@ jobs: uses: actions/checkout@v4 - id: match-java name: Match Java + env: + ISSUE_TITLE: ${{ github.event.issue.title }} # if the title contains the word Java (case insensitive) # we make sure that this word is the end of the string or is followed by a space character (ex. we do not want to match javascript) # we make sure that this word is the beginning of the string or is preceded by a space character (ex. we do not want to match foojava) run: | - if [[ "${{ github.event.issue.title }}" =~ (^|[[:space:]])([jJ][aA][vV][aA])([[:space:]]|$) ]]; then + if [[ "$ISSUE_TITLE" =~ (^|[[:space:]])([jJ][aA][vV][aA])([[:space:]]|$) ]]; then echo "match=true" >> $GITHUB_OUTPUT fi