Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

ci: use `env` input to fix the command injection vulnerability (#2797)

Shankar Singh C3199cd6f357d
diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml
index 8c15246f0e..167be29544 100644
--- a/.github/workflows/pr-title-check.yml
+++ b/.github/workflows/pr-title-check.yml
@@ -41,7 +41,9 @@ jobs:
steps:
- name: Store PR title in a file
shell: bash
- run: echo '${{ github.event.pull_request.title }}' > pr_title.txt
+ env:
+ TITLE: ${{ github.event.pull_request.title }}
+ run: echo $TITLE > pr_title.txt
- name: Spell check
uses: crate-ci/typos@master
@@ -66,8 +68,10 @@ jobs:
id: pr_title_check
if: ${{ github.event_name == 'pull_request_target' }}
shell: bash
+ env:
+ TITLE: ${{ github.event.pull_request.title }}
continue-on-error: true
- run: cog verify '${{ github.event.pull_request.title }}'
+ run: cog verify "$TITLE"
- name: Verify commit message follows conventional commit standards
id: commit_message_check