Skip to content

Commit d69d282

Browse files
authored
Update check enforcer yaml permissions and name (Azure#19153)
1 parent 4aa82af commit d69d282

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/event.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1-
name: GitHub Event Handler
1+
# NOTE: currently azure-sdk-actions only hosts check enforcer code.
2+
# If further functionality is added, this name should be updated to reflect
3+
# the more generic behavior
4+
name: Check Enforcer
25

36
on:
47
check_suite:
58
types: [completed]
69
issue_comment:
710
types: [created]
811

12+
permissions: {}
13+
914
jobs:
1015
event-handler:
16+
permissions:
17+
statuses: write # to set status (azure/azure-sdk-actions)
18+
pull-requests: read # to read pull requests (azure/azure-sdk-actions)
19+
checks: read # to read check status (azure/azure-sdk-actions)
1120
name: Handle ${{ github.event_name }} ${{ github.event.action }} event
1221
runs-on: ubuntu-latest
1322
steps:

0 commit comments

Comments
 (0)