Skip to content

Commit

Permalink
chore(ci): prevent code injection
Browse files Browse the repository at this point in the history
  • Loading branch information
leet4tari committed Jan 10, 2024
1 parent 566e1ab commit 823314f
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 823314f

Please sign in to comment.