Skip to content

Commit 2fb5626

Browse files
fix: Fix vulnerability in 'issue-creation.yml' workflow
1 parent 5012b29 commit 2fb5626

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/issue-creation.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
issues:
44
types: [ opened, reopened ]
55

6+
env:
7+
ISSUE_TITLE: "${{ github.event.issue.title }}"
8+
69
jobs:
710
build:
811
runs-on: ubuntu-latest
@@ -11,7 +14,7 @@ jobs:
1114
- name: Git Issue Details
1215
run: |
1316
echo "Issue creator: ${{ github.event.issue.user.login }}"
14-
echo "Issue title: ${{ github.event.issue.title }}"
17+
echo "Issue title: $ISSUE_TITLE"
1518
echo "Issue number: ${{ github.event.issue.number }}"
1619
echo "Issue url: ${{ github.event.issue.html_url }}"
1720
- name: Google Chat Notification
@@ -37,7 +40,7 @@ jobs:
3740
{
3841
"keyValue": {
3942
"topLabel": "Title",
40-
"content": "${{ github.event.issue.title }}"
43+
"content": "'"$ISSUE_TITLE"'"
4144
}
4245
},
4346
{

0 commit comments

Comments
 (0)