Skip to content

Commit

Permalink
👷 chore(ci): Sanitize PR title in .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception committed Sep 14, 2023
1 parent 0a640ea commit 0d1b3f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ jobs:
pnpm add $CONFIG_PACKAGE
- name: Validate PR title
env:
# Sanitizing PR title as documented here:
# 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: |
echo "${{ github.event.pull_request.title }}" | pnpm -s dlx commitlint
echo $PR_TITLE | pnpm -s dlx commitlint

0 comments on commit 0d1b3f9

Please sign in to comment.