Skip to content

Commit 72961e1

Browse files
committed
Adding permissions from upstream templates
1 parent ac674f3 commit 72961e1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/publish-go-tester-task.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
outputs:
3636
result: ${{ steps.determination.outputs.result }}
37+
permissions: {}
3738
steps:
3839
- name: Determine if the rest of the workflow should run
3940
id: determination
@@ -59,6 +60,7 @@ jobs:
5960
needs: run-determination
6061
if: needs.run-determination.outputs.result == 'true'
6162
runs-on: ubuntu-latest
63+
permissions: {}
6264
outputs:
6365
prefix: ${{ steps.calculation.outputs.prefix }}
6466
steps:
@@ -77,6 +79,8 @@ jobs:
7779
needs: package-name-prefix
7880
name: Build ${{ matrix.os.artifact-name }}
7981
runs-on: ${{ matrix.os.runner }}
82+
permissions:
83+
contents: read
8084

8185
strategy:
8286
matrix:
@@ -150,6 +154,8 @@ jobs:
150154
- build
151155
- package-name-prefix
152156
runs-on: ubuntu-latest
157+
permissions:
158+
contents: read
153159

154160
steps:
155161
- name: Download build artifacts

.github/workflows/release-go-task.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
jobs:
2020
create-release-artifacts:
2121
runs-on: ${{ matrix.os.runner }}
22+
permissions:
23+
contents: read
2224

2325
strategy:
2426
matrix:

0 commit comments

Comments
 (0)