Skip to content

Commit

Permalink
ci(fix): prevent code injection (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
leet4tari authored Dec 5, 2023
1 parent 153ae2e commit 657b25f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 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 @@ -16,5 +18,7 @@ jobs:
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 657b25f

Please sign in to comment.