Skip to content

Commit

Permalink
chore: hardening workflow scripts (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech authored Apr 14, 2024
1 parent 781b00a commit 74d86a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- edited
- synchronize

permissions:
pull-requests: read
issues: read

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -30,6 +34,9 @@ jobs:
${{ runner.os }}-
- name: Check if PR title follows conventional commit guidelines
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
npm i -g @commitlint/cli@17.0.2 @commitlint/config-conventional@17.0.2
echo "${{ github.event.pull_request.title }}" | commitlint
echo "$PR_TITLE" | commitlint

0 comments on commit 74d86a4

Please sign in to comment.