Skip to content

Commit

Permalink
ci(fix): prevent code injection (#214)
Browse files Browse the repository at this point in the history
Update pr_title workflow, to prevent code injection.
  • Loading branch information
leet4tari authored Dec 5, 2023
1 parent 06633d6 commit 7ba8484
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: PR
on:

'on':
pull_request:
types:
- opened
Expand All @@ -15,6 +17,9 @@ jobs:
run: |
npm install -g @commitlint/cli @commitlint/config-conventional
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
- name: lint
env:
PR_TITLE: ${{github.event.pull_request.title}}
run: |
echo "${{github.event.pull_request.title}}" | commitlint
echo "$PR_TITLE" | commitlint

0 comments on commit 7ba8484

Please sign in to comment.