Skip to content

Set more specific GitHub token permissions on workflows. #783

Set more specific GitHub token permissions on workflows.

Set more specific GitHub token permissions on workflows. #783

Workflow file for this run

name: "Ensure labels"
permissions:
pull-requests: read
on: # yamllint disable-line rule:truthy
pull_request:
types:
- labeled
- unlabeled
- opened
- synchronize
- reopened
- ready_for_review
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Check changelog labels
if: github.event.pull_request.draft == false && false == contains(join(github.event.pull_request.labels.*.name, ','), 'changelog/')
run: |-
echo "::error Add 'changelog/*' label";
exit 1;
- name: OK
run: echo "Thank you!"