Skip to content

Commit 55a2797

Browse files
committed
Add explicit permissions block to test-all.yml
Set top-level `contents: read` to satisfy CodeQL requirements. The rerun-failed-jobs job gets a job-level override adding `actions: write` since it needs to trigger retry-workflow.yml.
1 parent 157163d commit 55a2797

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test-all.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- main
99
- "*-stable"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
set_release_type:
1316
runs-on: ubuntu-latest
@@ -510,6 +513,9 @@ jobs:
510513
# This job only handles Fantom test retries on main.
511514
rerun-failed-jobs:
512515
runs-on: ubuntu-latest
516+
permissions:
517+
contents: read
518+
actions: write
513519
needs: [run_fantom_tests]
514520
if: ${{ github.ref == 'refs/heads/main' && always() }}
515521
steps:

0 commit comments

Comments
 (0)