Skip to content

Commit 93c3754

Browse files
committed
ci: adding permissions to github workflow jobs
1 parent 5b16983 commit 93c3754

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
build:
2626
name: Build
2727
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
2830
steps:
2931
- name: Checkout
3032
uses: actions/checkout@v4

.github/workflows/documentation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
linting:
2626
name: Documentation linting
2727
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
2830
steps:
2931
- name: Checkout
3032
uses: actions/checkout@v4
@@ -47,6 +49,8 @@ jobs:
4749
policy-doc:
4850
name: Policy documentation
4951
runs-on: ubuntu-latest
52+
permissions:
53+
contents: read
5054
steps:
5155
- name: Checkout
5256
uses: actions/checkout@v3

.github/workflows/policy-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
build:
3030
name: Policy Test
3131
runs-on: ubuntu-latest
32+
permissions:
33+
contents: read
3234
steps:
3335
- name: Checkout
3436
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
jobs:
2222
goreleaser:
2323
runs-on: ubuntu-latest
24+
permissions:
25+
contents: write
26+
packages: write
2427
steps:
2528
- name: Checkout
2629
uses: actions/checkout@v4

0 commit comments

Comments
 (0)