Skip to content

Commit 161f4d8

Browse files
committed
make permissions global so apply across actions
1 parent 49630dd commit 161f4d8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/build-and-publish-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- 'reinstall-cmake.sh'
1717
- 'VERSION'
1818

19+
permissions:
20+
contents: read
21+
packages: write
1922

2023
env:
2124
REGISTRY: ghcr.io
@@ -27,9 +30,6 @@ jobs:
2730
github.event_name == 'workflow_dispatch' ||
2831
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2932
runs-on: ubuntu-latest
30-
permissions:
31-
contents: read
32-
packages: write
3333

3434
steps:
3535
- name: Checkout repository

.github/workflows/build-gitpod-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
- 'reinstall-cmake.sh'
1818
- 'VERSION'
1919

20+
permissions:
21+
contents: read
22+
packages: write
2023

2124
env:
2225
REGISTRY: ghcr.io
@@ -28,9 +31,6 @@ jobs:
2831
github.event_name == 'workflow_dispatch' ||
2932
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
3033
runs-on: ubuntu-latest
31-
permissions:
32-
contents: read
33-
packages: write
3434

3535
steps:
3636
- name: Checkout repository

.github/workflows/schedule-docker-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
- cron: '0 0 1,15 * *'
66

7+
permissions:
8+
contents: read
9+
packages: write
710

811
env:
912
REGISTRY: ghcr.io
@@ -12,9 +15,6 @@ env:
1215
jobs:
1316
build-and-push-image:
1417
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
packages: write
1818
strategy:
1919
matrix:
2020
branch: [main, devel]

0 commit comments

Comments
 (0)