Skip to content

Commit cc41ec6

Browse files
committed
protect title field
1 parent ffff25d commit cc41ec6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/Zapier.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Triggers the workflow on push or pull request events but only for the "main" branch
88
issues:
99
types: [closed]
10+
11+
permissions:
12+
issues: read
1013

1114
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1215
jobs:
@@ -20,10 +23,12 @@ jobs:
2023
# Runs a set of commands using the runners shell
2124
- name: Call Zapier web hook to close Asana task
2225
if: ${{ !github.event.issue.pull_request }}
26+
env:
27+
ISSUE_TITLE: ${{ github.event.issue.title }}
2328
run: |
2429
curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
2530
--header 'Content-Type: application/json' \
2631
--header 'Accept: application/json' \
2732
--data-raw '{
28-
"task_name" : "${{ github.event.issue.title }}"
33+
"task_name" : "$ISSUE_TITLE"
2934
}'

0 commit comments

Comments
 (0)