Skip to content

fix(commitlint): add pull-requests:read permission so wagoid action c… #11

fix(commitlint): add pull-requests:read permission so wagoid action c…

fix(commitlint): add pull-requests:read permission so wagoid action c… #11

Workflow file for this run

name: Commit Lint

Check failure on line 1 in .github/workflows/commitlint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/commitlint.yml

Invalid workflow file

(Line: 8, Col: 3): 'pull-requests' is already defined
on:
pull_request:
branches: [main, master]
permissions:
contents: read
pull-requests: read
pull-requests: read
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Lint commits in PR
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
with:
configFile: ".commitlintrc.json"
failOnWarnings: false
firstParent: false