From 8ed64847a0c7ecbbb1bf73912f9098bf7ea3ae57 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 1 Sep 2024 22:17:52 +0200 Subject: [PATCH] [core] Reset permissions for codspeed GitHub Action (#14420) --- .github/workflows/codspeed.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 3f56d206a17d..e05f761ab302 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -17,6 +17,8 @@ on: - 'master' - 'next' +permissions: {} + jobs: benchmarks: name: Benchmarks Charts @@ -26,10 +28,10 @@ jobs: # L3: Run the benchmarks for pull requests with the label 'component: charts' # Yaml syntax looks a little weird, but it is correct. if: >- - ${{ - (github.event_name == 'push') || - (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'component: charts') || - (github.event_name == 'pull_request' && github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'component: charts')) + ${{ + (github.event_name == 'push') || + (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'component: charts') || + (github.event_name == 'pull_request' && github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'component: charts')) }} steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7