Skip to content

Commit d032e38

Browse files
authored
Enforce least privilege in check-generated-files workflow
Add permissions section to enforce least privilege for workflow.
1 parent 2af9d56 commit d032e38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/check-generated-files.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.event.number }}
99
cancel-in-progress: true
1010

11+
# SECURITY: Enforce least privilege.
12+
# This workflow only needs to checkout code; it does not need write access.
13+
permissions:
14+
contents: read
15+
1116
jobs:
1217
check-ui-static-files:
1318
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)