Skip to content

Commit

Permalink
ci(commit-check): add permissions
Browse files Browse the repository at this point in the history
Add the required permissions for the worker to comment the build results
on the PR being submitted.

Add the GITHUB_TOKEN to the env so it can actually authenticate with the
endpoint.

Signed-off-by: Randolph Sapp <[email protected]>
  • Loading branch information
StaticRocket committed Oct 29, 2024
1 parent 5f83661 commit 8c411f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ jobs:
commit-check:
name: Commit Check
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
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
Expand Down

0 comments on commit 8c411f3

Please sign in to comment.