Skip to content

Commit 27f38ad

Browse files
committed
Add explicit permissions for jobs
1 parent 5504f4f commit 27f38ad

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

.github/workflows/devcontainer-all.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
2427
steps:
2528

2629
- name: Checkout Repository

.github/workflows/devcontainer-azurertos.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
2427
steps:
2528

2629
- name: Checkout Repository

.github/workflows/devcontainer-chibios.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
2427
steps:
2528

2629
- name: Checkout Repository

.github/workflows/devcontainer-esp32.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
2427
steps:
2528

2629
- name: Checkout Repository

.github/workflows/devcontainer-freertos-nxp.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
2427
steps:
2528

2629
- name: Checkout Repository

.github/workflows/devcontainer-smoketest.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
]
3232

3333
runs-on: ubuntu-latest
34+
permissions:
35+
contents: read
3436

3537
steps:
3638
- uses: actions/checkout@v4

.github/workflows/devcontainer-ti.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
packages: write
2427
steps:
2528

2629
- name: Checkout Repository

0 commit comments

Comments
 (0)