Skip to content

Commit

Permalink
Merge pull request #77 from leet4tari/ci-security-pr-title
Browse files Browse the repository at this point in the history
ci(fix): prevent code injection
  • Loading branch information
leet4tari committed Dec 6, 2023
2 parents b92f855 + ceb9d24 commit 4a35305
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 4a35305

Please sign in to comment.