Skip to content

Commit

Permalink
fix: prevent code injection (#4327)
Browse files Browse the repository at this point in the history
Description
---
Prevent code injection from PR titles.

How Has This Been Tested?
---
I've used `act` to test locally the pull request, with the code injection title.
  • Loading branch information
Cifko committed Jul 21, 2022
1 parent 9797c19 commit 5391938
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr_title.yml
Expand Up @@ -19,4 +19,6 @@ jobs:
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- name: lint
run: |
echo "${{github.event.pull_request.title}}" | commitlint
echo "$PR_TITLE" | commitlint
env:
PR_TITLE: ${{github.event.pull_request.title}}

0 comments on commit 5391938

Please sign in to comment.