Skip to content

ci: fix permissions issue in label-pr workflow #154

ci: fix permissions issue in label-pr workflow

ci: fix permissions issue in label-pr workflow #154

Workflow file for this run

name: Lint PR Title
on:
pull_request_target:
types: [edited, opened, reopened, synchronize]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# force to ci checkout main repo to avoid
# unexpected PR code to be executed with out github token
ref: main
- uses: ./.github/actions/setup-js-env
- name: Run Lint Script
run: |
node .github/scripts/lint-pr-title.cjs
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
PR_NUMBER: ${{ github.event.number }}