Elizabeth Mitchell 417e1cfe67 chore: add explicit GitHub workflow permissions
PiperOrigin-RevId: 815915576
2025-10-06 15:49:25 -07:00

23 lines
456 B
YAML

name: commitlint
on: [pull_request]
permissions:
contents: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm install -g @commitlint/cli @commitlint/config-conventional
- run: 'echo "${PR_TITLE}" | commitlint'
env:
PR_TITLE: ${{ github.event.pull_request.title }}