Skip to content

Commit b3ea678

Browse files
authored
Update workflows with job permissions (#48)
* Update test.yml to with job permissions * Update validate.yml work job permissions * Update test.yml with Copilot feedback * Update validate.yml with Copilot feedback
1 parent 3210248 commit b3ea678

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ on:
66
- master
77
pull_request:
88
workflow_dispatch:
9-
9+
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
1014
jobs:
1115
test-autogenerated:
1216
runs-on: ubuntu-24.04

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
workflow_dispatch:
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
validate:
913
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)