Skip to content

Commit ca0f188

Browse files
Update workflow permissions
Set workflow permissions to none and add job-level permissions instead.
1 parent c86b454 commit ca0f188

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ on:
1919
- '**/*.md'
2020
workflow_dispatch:
2121

22-
permissions:
23-
contents: read
22+
permissions: {}
2423

2524
jobs:
2625
benchmark:
2726
name: benchmark
2827
runs-on: ubuntu-latest
2928

29+
permissions:
30+
contents: read
31+
3032
steps:
3133

3234
- name: Checkout code

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ on:
1414
- dotnet-nightly
1515
workflow_dispatch:
1616

17-
permissions:
18-
contents: read
17+
permissions: {}
1918

2019
env:
2120
DOTNET_NOLOGO: true
@@ -30,6 +29,9 @@ jobs:
3029
name: ${{ matrix.os }}
3130
runs-on: ${{ matrix.os }}
3231

32+
permissions:
33+
contents: read
34+
3335
strategy:
3436
fail-fast: false
3537
matrix:

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ on:
1414
- dotnet-nightly
1515
workflow_dispatch:
1616

17-
permissions:
18-
contents: read
17+
permissions: {}
1918

2019
env:
2120
FORCE_COLOR: 3
@@ -25,6 +24,9 @@ jobs:
2524
lint:
2625
runs-on: ubuntu-latest
2726

27+
permissions:
28+
contents: read
29+
2830
steps:
2931

3032
- name: Checkout code

0 commit comments

Comments
 (0)