diff --git a/.github/workflows/commit-check.yml b/.github/workflows/commit-check.yml index 69ec75366..72c194123 100644 --- a/.github/workflows/commit-check.yml +++ b/.github/workflows/commit-check.yml @@ -1,7 +1,6 @@ --- name: Commit Check on: - push: pull_request: branches: ['master'] @@ -9,6 +8,10 @@ jobs: commit-check: name: Commit Check runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write steps: - name: Checkout @@ -16,7 +19,10 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} - - uses: commit-check/commit-check-action@v1 + - name: Check commit + uses: commit-check/commit-check-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: message: true author-name: true