Skip to content

Commit

Permalink
Update zapier.yml to parse issue title into the env
Browse files Browse the repository at this point in the history
This prevents potential injection in a run script
  • Loading branch information
emawby committed Oct 26, 2023
1 parent 7b2df9d commit bbaaf36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/Zapier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
# Runs a set of commands using the runners shell
- name: Call Zapier web hook to close Asana task
if: ${{ !github.event.issue.pull_request }}
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: |
curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"task_name" : "${{ github.event.issue.title }}"
"task_name" : "$ISSUE_TITLE"
}'

0 comments on commit bbaaf36

Please sign in to comment.