Skip to content

Commit 75ec1a9

Browse files
authored
[CI/CD] add write permissions for updating badge and pushing test results (#1206)
* add write permissions for updating badge and pushing test results * set benchmark alert back to 175% * set both thresholds to 150%
1 parent 844641f commit 75ec1a9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
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
@@ -255,7 +257,7 @@ jobs:
255257
benchmark-data-dir-path: ""
256258
# Set auto-push to false since GitHub API token is not given
257259
auto-push: false
258-
alert-threshold: '125%'
260+
alert-threshold: '150%'
259261
gh-pages-branch: "benchmark-results"
260262
fail-on-alert: true
261263
- name: Push benchmark result
@@ -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
@@ -326,7 +329,11 @@ jobs:
326329
benchmark-data-dir-path: ""
327330
# Set auto-push to false since GitHub API token is not given
328331
auto-push: false
329-
alert-threshold: '125%'
332+
<<<<<<< Updated upstream
333+
alert-threshold: '175%'
334+
=======
335+
alert-threshold: '150%'
336+
>>>>>>> Stashed changes
330337
gh-pages-branch: "benchmark-results"
331338
fail-on-alert: true
332339

0 commit comments

Comments
 (0)