Skip to content

Commit 36cf418

Browse files
committed
add write permissions for updating badge and pushing test results
1 parent ba88e4c commit 36cf418

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
unit-test:
5959
name: Unit Tests
6060
runs-on: ubuntu-22.04
61+
permissions:
62+
contents: write
6163
steps:
6264
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6365
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
@@ -264,9 +266,10 @@ jobs:
264266
load-tests:
265267
name: Load Tests
266268
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref_name, 'dependabot/') }}
269+
permissions:
270+
contents: write
267271
runs-on: ubuntu-22.04
268272
needs: build-unsigned-snapshot
269-
270273
steps:
271274
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
272275
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0

0 commit comments

Comments
 (0)