Skip to content

Commit b1b7ee9

Browse files
committed
ci: explicitly set permissions
1 parent dda0b3b commit b1b7ee9

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99

1010
jobs:
1111
test-versions:
12+
permissions:
13+
contents: read
14+
actions: write
15+
checks: write
1216
strategy:
1317
matrix:
1418
csharpFunctionalExtensionsVersion: ["2.29.0", "2.*", "3.0.0", "3.*"]
@@ -20,6 +24,8 @@ jobs:
2024
check:
2125
runs-on: ubuntu-latest
2226
needs: test-versions
27+
permissions:
28+
contents: read
2329
steps:
2430
- name: Checkout
2531
uses: actions/checkout@v4

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
jobs:
99
test-versions:
10+
permissions:
11+
contents: read
12+
actions: write
13+
checks: write
1014
strategy:
1115
matrix:
1216
csharpFunctionalExtensionsVersion: [ '2.29.0', '2.*', '3.0.0', '3.*' ]

.github/workflows/test-version.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
type: string
88
required: true
99

10+
permissions:
11+
contents: read
12+
actions: write
13+
checks: write
14+
1015
jobs:
1116
test-version:
1217
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)