Skip to content

Commit 4f66ec4

Browse files
authored
Merge pull request #760 from siemens/ci/permissions
ci: define permissions for enforce-labels workflow
2 parents db2bfc9 + 16e8612 commit 4f66ec4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/enforce-labels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ name: "Enforce PR labels"
44
on: # yamllint disable-line rule:truthy
55
pull_request_target:
66
types: [labeled, unlabeled, opened, edited, synchronize]
7+
8+
permissions:
9+
contents: read # to read configuration file
10+
pull-requests: write # to label PRs
11+
712
jobs:
813
enforce-label:
914
if: github.repository == 'dev-sec/ansible-collection-hardening'

0 commit comments

Comments
 (0)