Skip to content

Commit 1200831

Browse files
authored
ci(benchmark): reduce workflow permissions (#403)
1 parent 3b6547f commit 1200831

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: Benchmark
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
types: [labeled]
66

77
jobs:
88
benchmark:
99
if: ${{ github.event.label.name == 'benchmark' }}
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
1113
outputs:
1214
PR-BENCH-12: ${{ steps.benchmark-pr.outputs.BENCH_RESULT12 }}
1315
PR-BENCH-14: ${{ steps.benchmark-pr.outputs.BENCH_RESULT14 }}
@@ -64,6 +66,8 @@ jobs:
6466
output-benchmark:
6567
needs: [benchmark]
6668
runs-on: ubuntu-latest
69+
permissions:
70+
pull-requests: write
6771
steps:
6872
- name: Comment PR
6973
uses: thollander/actions-comment-pull-request@v1

0 commit comments

Comments
 (0)