Преглед изворни кода

Safely use issue title variable (#3550)

Adnan Khan пре 7 месеци
родитељ
комит
b7d15976f8
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      .github/workflows/sync-jira.yml

+ 2 - 1
.github/workflows/sync-jira.yml

@@ -21,6 +21,7 @@ jobs:
           JIRA_TOKEN:  ${{ secrets.JIRA_API_TOKEN }}
           JIRA_TOKEN:  ${{ secrets.JIRA_API_TOKEN }}
           JIRA_BASE:   ${{ secrets.JIRA_BASE }}    
           JIRA_BASE:   ${{ secrets.JIRA_BASE }}    
           PROJECT_KEY: VEN
           PROJECT_KEY: VEN
+          ISSUE_TITLE: ${{ github.event.issue.title }}
         run: |
         run: |
           set -e  # Exit on any error
           set -e  # Exit on any error
           
           
@@ -40,7 +41,7 @@ jobs:
           fi
           fi
           
           
           # Prepare the data with error checking
           # Prepare the data with error checking
-          SUMMARY="${{ github.event.issue.title }}"
+          SUMMARY="$ISSUE_TITLE"
           DESC="Imported from GitHub: $GH_URL"
           DESC="Imported from GitHub: $GH_URL"
           
           
           # Create the search request body
           # Create the search request body