Skip to content

Commit

Permalink
ci(benchmark): reduce workflow permissions (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Apr 13, 2022
1 parent 3b6547f commit 1200831
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Benchmark

on:
pull_request_target:
pull_request:
types: [labeled]

jobs:
benchmark:
if: ${{ github.event.label.name == 'benchmark' }}
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
PR-BENCH-12: ${{ steps.benchmark-pr.outputs.BENCH_RESULT12 }}
PR-BENCH-14: ${{ steps.benchmark-pr.outputs.BENCH_RESULT14 }}
Expand Down Expand Up @@ -64,6 +66,8 @@ jobs:
output-benchmark:
needs: [benchmark]
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
Expand Down

0 comments on commit 1200831

Please sign in to comment.