Skip to content

feat: added permissions (pull-requests: read) setting to workflow and README example #203

feat: added permissions (pull-requests: read) setting to workflow and README example

feat: added permissions (pull-requests: read) setting to workflow and README example #203

name: 'Lint PR title preview (current branch, validateSingleCommit enabled)'
on:
pull_request:
types:
- opened
- edited
- synchronize
permissions:
pull-requests: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn build
- uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true
validateSingleCommitMatchesPrTitle: true