Skip to content

Commit 7c89835

Browse files
authored
ci(l1, l2, levm): fix workflow permissions. (#5064)
**Motivation** Fix regression added in #5009 **Description** - Some workflows need more permissions that were granted
1 parent a993586 commit 7c89835

File tree

8 files changed

+23
-3
lines changed

8 files changed

+23
-3
lines changed

.github/workflows/common_failure_alerts.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222

2323
permissions:
2424
contents: read
25+
actions: read
2526

2627
jobs:
2728
notify-on-failure:
@@ -61,10 +62,12 @@ jobs:
6162
run_id: runId,
6263
per_page: 100,
6364
},
64-
response =>
65-
response.data.jobs.filter(
65+
response => {
66+
const jobs = Array.isArray(response?.data?.jobs) ? response.data.jobs : [];
67+
return jobs.filter(
6668
job => job.conclusion && failingConclusions.has(job.conclusion)
67-
)
69+
);
70+
}
6871
);
6972
const ignoredJobs = new Set(['Integration Test']);
7073
const relevantJobs = failedJobs

.github/workflows/pr-main_levm.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
permissions:
20+
contents: read
21+
actions: write
22+
issues: write
2023
pull-requests: write
2124

2225
jobs:

.github/workflows/pr_loc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: ["**"]
66

77
permissions:
8+
contents: read
9+
issues: write
810
pull-requests: write
911

1012
jobs:

.github/workflows/pr_perf_blocks_exec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: ["**"]
66

77
permissions:
8+
contents: read
9+
actions: write
10+
issues: write
811
pull-requests: write
912

1013
jobs:

.github/workflows/pr_perf_build_block_bench.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
#branches: ["**"]
99

1010
permissions:
11+
contents: read
12+
issues: write
1113
pull-requests: write
1214

1315
jobs:

.github/workflows/pr_perf_levm.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
workflow_dispatch:
1010

1111
permissions:
12+
contents: read
13+
actions: write
14+
issues: write
1215
pull-requests: write
1316

1417
jobs:

.github/workflows/pr_perf_trie.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- "crates/common/trie/**"
99

1010
permissions:
11+
contents: read
12+
issues: write
1113
pull-requests: write
1214

1315
jobs:

.github/workflows/tag_release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
packages: write
11+
actions: write
1112

1213
env:
1314
REGISTRY: ghcr.io
@@ -185,6 +186,7 @@ jobs:
185186
packages: write
186187
attestations: write
187188
id-token: write
189+
actions: write
188190

189191
steps:
190192
- name: Checkout code

0 commit comments

Comments
 (0)