Test workflow permissions (#8611)

This commit is contained in:
Pere Miquel Brull 2022-11-09 15:53:10 +01:00 committed by GitHub
parent 9c360fb61c
commit 09ac3be112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,9 @@ on:
- main
- '0.[0-9]+.[0-9]+'
permissions:
contents: read
concurrency:
group: java-checkstyle-${{ github.head_ref }}
cancel-in-progress: true
@ -47,6 +50,8 @@ jobs:
git diff-files --quiet
- name: Create a comment in the PR with the instructions
permissions:
pull-requests: write
if: steps.git.outcome != 'success'
uses: peter-evans/create-or-update-comment@v1
with: