Skip to content

Commit 7a7eefa

Browse files
committed
ci: clamp permissions
We don't need all of these operating with the default permissions right now. Signed-off-by: Randolph Sapp <rs@ti.com>
1 parent 086b098 commit 7a7eefa

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
container:
2020
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
2121
options: --entrypoint /bin/bash
22+
permissions:
23+
contents: read
2224
outputs:
2325
build-matrix: "${{ steps.matrix.outputs.matrix }}"
2426
steps:
@@ -36,6 +38,8 @@ jobs:
3638
container:
3739
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
3840
options: --entrypoint /bin/bash
41+
permissions:
42+
contents: read
3943
needs: collect
4044
strategy:
4145
matrix:

.github/workflows/check_toc_txt.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
container:
2020
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
2121
options: --entrypoint /bin/bash
22+
permissions:
23+
contents: read
2224

2325
steps:
2426
- name: Checkout repository

.github/workflows/comment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
name: Comment
1616
runs-on: ubuntu-latest
1717
if: ${{ github.event.workflow_run.event == 'pull_request' }}
18+
permissions:
19+
pull-requests: write
1820

1921
steps:
2022
- name: Download artifact

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
container:
1717
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
1818
options: --entrypoint /bin/bash
19+
permissions:
20+
contents: read
1921

2022
steps:
2123
- name: Checkout

.github/workflows/rstcheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
container:
1919
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
2020
options: --entrypoint /bin/bash
21+
permissions:
22+
contents: read
2123

2224
steps:
2325
- name: Checkout repository

.github/workflows/vale.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
container:
1515
image: ghcr.io/staticrocket/processor-sdk-doc:latest
1616
options: --entrypoint /bin/bash
17+
permissions:
18+
contents: read
1719

1820
steps:
1921
- name: Prepare GitHub workdir

0 commit comments

Comments
 (0)