Skip to content

Commit

Permalink
fix: store pr title before usage (#542)
Browse files Browse the repository at this point in the history
Stores the PR title in an environment variable before usage. This should
prevent any unwanted remote code execution.
  • Loading branch information
roelbondoc committed May 7, 2024
1 parent 069638c commit d4cdfe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/check-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- name: Verify PR title is in the correct format
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
echo "${{ github.event.pull_request.title }}" | npx commitlint -V
echo $TITLE | npx commitlint -V

0 comments on commit d4cdfe7

Please sign in to comment.