From 642f0ecb0ddfeeeeb5a552e1513cf60d8b3f1741 Mon Sep 17 00:00:00 2001 From: Michael Tautschnig Date: Tue, 9 Sep 2025 20:09:49 +0000 Subject: [PATCH] Fix permissions in extra_jobs.yml With the newly-restricted permissions we got an "Invalid workflow file" error in https://github.com/model-checking/kani/actions/runs/17593954849. --- .github/workflows/extra_jobs.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/extra_jobs.yml b/.github/workflows/extra_jobs.yml index df045c8da74b..78a7912fb549 100644 --- a/.github/workflows/extra_jobs.yml +++ b/.github/workflows/extra_jobs.yml @@ -18,6 +18,8 @@ # See https://github.com/actions/labeler?tab=readme-ov-file#recommended-permissions for more details. name: Kani Extra +permissions: + contents: read on: pull_request_target: merge_group: @@ -27,7 +29,6 @@ jobs: auto-label: name: Auto Label permissions: - contents: read pull-requests: write outputs: all-labels: ${{ steps.labeler.outputs.all-labels }} @@ -46,13 +47,11 @@ jobs: end-to-end-bench: name: End-to-End Benchmarks needs: auto-label - permissions: {} if: ${{ contains(needs.auto-label.outputs.all-labels, 'Z-EndToEndBenchCI') && github.event_name != 'merge_group' }} uses: ./.github/workflows/bench-e2e.yml compiler-bench: name: Compiler Benchmarks needs: auto-label - permissions: {} if: ${{ contains(needs.auto-label.outputs.all-labels, 'Z-CompilerBenchCI') && github.event_name != 'merge_group' }} uses: ./.github/workflows/bench-compiler.yml