Skip to content

Commit b409344

Browse files
authored
Add permissions for write access in docs job (#1390) (#2327)
* Add permissions for write access in the docs job * Fixed Nightly failure due to permissions
1 parent 12608b0 commit b409344

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

.github/workflows/buildmgr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ jobs:
119119
((github.event.schedule != '') && (!github.event.repository.private))
120120
runs-on: ubuntu-22.04
121121
timeout-minutes: 5
122+
permissions:
123+
contents: write
122124
steps:
123125
- name: Harden Runner
124126
if: ${{ !github.event.repository.private }}

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- cron: '0 0 * * *'
77

88
permissions:
9-
contents: read
9+
contents: write
1010

1111
jobs:
1212
buildmgr:

.github/workflows/packchk.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,14 @@ jobs:
329329
if-no-files-found: error
330330

331331
release:
332-
permissions:
333-
contents: write
334332
if: |
335333
github.event_name == 'release' &&
336334
startsWith(github.ref, 'refs/tags/tools/packchk/')
337335
needs: [ build, test, coverage ]
338336
runs-on: ubuntu-22.04
339337
timeout-minutes: 15
340-
338+
permissions:
339+
contents: write
341340
steps:
342341
- name: Checkout devtools
343342
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/svdconv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ jobs:
333333
needs: [ build, test, coverage ]
334334
runs-on: ubuntu-22.04
335335
timeout-minutes: 15
336-
336+
permissions:
337+
contents: write
337338
steps:
338339
- name: Checkout devtools
339340
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/unit_test_results.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ on:
88
types:
99
- completed
1010

11-
permissions:
12-
contents: read
13-
1411
jobs:
1512
publish-test-results:
1613
name: Publish Test Results
1714
runs-on: ubuntu-22.04
1815
if: github.event.workflow_run.conclusion != 'skipped'
19-
2016
steps:
2117
- name: Harden Runner
2218
if: ${{ !github.event.repository.private }}

0 commit comments

Comments
 (0)