Skip to content

Harden ci workflows with concurrency timeouts credential scoping caching and correct triggers #122

Harden ci workflows with concurrency timeouts credential scoping caching and correct triggers

Harden ci workflows with concurrency timeouts credential scoping caching and correct triggers #122

name: PR Quality Checks
on:
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-pr:
name: Lint PR Commits
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Set Up Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Install commitlint
run: npm install -D -g @commitlint/cli @commitlint/config-conventional
- name: Print Versions
run: |
git --version
node --version
npm --version
npx commitlint --version
- name: Validate PR Commits
run: npx commitlint --config commitlint.config.js --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose