chore(ci): set pull-requests permission to write in commit checks

This is mandatory according to the action documentation,
notably to be able to write issue comment within the pull-request.
This commit is contained in:
David Testé
2025-06-19 08:23:42 +02:00
committed by David Testé
parent e5a9145cce
commit 2d224e75a1

View File

@@ -3,14 +3,15 @@ name: Check commit and PR compliance
on:
pull_request:
permissions:
contents: read
pull-requests: read # Permission needed to scan commits in a pull-request
permissions: {}
jobs:
check-commit-pr:
name: Check commit and PR
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # Permission needed to scan commits in a pull-request and write issue comment
steps:
- name: Check first line
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee