5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 08:06:54 +00:00

docs: add permissions to instructions

This commit is contained in:
Wagner Santos 2024-01-08 09:18:38 -03:00 committed by GitHub
parent 0d749a1a91
commit 4aa3d8f3ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,10 @@ Create a github workflow in the `.github` folder, e.g. `.github/workflows/commit
name: Lint Commit Messages name: Lint Commit Messages
on: [pull_request] on: [pull_request]
permissions:
contents: read
pull-requests: read
jobs: jobs:
commitlint: commitlint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -130,6 +134,10 @@ In order to do so, you can use `NODE_PATH` env var to make the action take those
name: Lint Commit Messages name: Lint Commit Messages
on: [pull_request] on: [pull_request]
permissions:
contents: read
pull-requests: read
jobs: jobs:
commitlint: commitlint:
runs-on: ubuntu-latest runs-on: ubuntu-latest