bigbluebutton-Github/.github/workflows/check-merge-conflict.yml
Ashish Kurmi bcff13777a ci: add minimum GitHub token permissions for workflow
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
2022-10-02 14:40:14 -07:00

27 lines
677 B
YAML

name: Merge conflict check
on:
push:
pull_request_target:
types:
- opened
- synchronize
permissions:
contents: read
jobs:
main:
permissions:
pull-requests: write # for eps1lon/actions-label-merge-conflict to label PRs
runs-on: ubuntu-latest
steps:
- name: Check for dirty pull requests
uses: eps1lon/actions-label-merge-conflict@releases/2.x
with:
dirtyLabel: "status: conflict"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: |
This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.