mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-23 07:51:44 +00:00
Test workflow permissions (#8611)
This commit is contained in:
parent
9c360fb61c
commit
09ac3be112
5
.github/workflows/java-checkstyle.yml
vendored
5
.github/workflows/java-checkstyle.yml
vendored
@ -19,6 +19,9 @@ on:
|
|||||||
- main
|
- main
|
||||||
- '0.[0-9]+.[0-9]+'
|
- '0.[0-9]+.[0-9]+'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: java-checkstyle-${{ github.head_ref }}
|
group: java-checkstyle-${{ github.head_ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
@ -47,6 +50,8 @@ jobs:
|
|||||||
git diff-files --quiet
|
git diff-files --quiet
|
||||||
|
|
||||||
- name: Create a comment in the PR with the instructions
|
- name: Create a comment in the PR with the instructions
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
if: steps.git.outcome != 'success'
|
if: steps.git.outcome != 'success'
|
||||||
uses: peter-evans/create-or-update-comment@v1
|
uses: peter-evans/create-or-update-comment@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user