Skip to content

Commit

Permalink
Use env var for PR title to prevent untrusted script injection
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrod16 committed Apr 4, 2024
1 parent 1173d81 commit 6bf2d27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ jobs:
run: npm install --save-dev @commitlint/{config-conventional,cli}

- name: Lint PR title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: echo "$PR_TITLE" | npx commitlint

0 comments on commit 6bf2d27

Please sign in to comment.