Skip to content

Commit 316f6e9

Browse files
Add explicit permissions for CI jobs (#3204)
1 parent 5504f4f commit 316f6e9

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

.github/workflows/devcontainer-all.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2426
steps:
2527

2628
- name: Checkout Repository

.github/workflows/devcontainer-azurertos.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2426
steps:
2527

2628
- name: Checkout Repository

.github/workflows/devcontainer-chibios.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2426
steps:
2527

2628
- name: Checkout Repository

.github/workflows/devcontainer-esp32.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2426
steps:
2527

2628
- name: Checkout Repository

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2426
steps:
2527

2628
- 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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
build:
2222
if: ${{ vars.PUBLISH_DOCKER_IMAGE == 'true' }}
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
2426
steps:
2527

2628
- name: Checkout Repository

0 commit comments

Comments
 (0)