Skip to content

Commit 01e3d92

Browse files
bvt123claude
andcommitted
fix(ci): Grant contents:read permission to CI callers and add timeouts
- ci-prod.yml and ci-dev.yml need contents:read to call reusable-ci.yml - Add timeout-minutes: 30 to generic-tests, e2e-core, e2e-optional jobs - Limit gotestsum retries to 2 in reusable-ci.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5316c72 commit 01e3d92

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/ci-dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ on:
1818
- "false"
1919
- "true"
2020

21-
permissions: {}
21+
permissions:
22+
contents: read
2223

2324
jobs:
2425
ci:

.github/workflows/ci-prod.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ on:
1818
- "false"
1919
- "true"
2020

21-
permissions: {}
21+
permissions:
22+
contents: read
2223

2324
jobs:
2425
ci:

.github/workflows/reusable-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
needs: build
7272
name: tests / ${{ inputs.stream }} / ${{ matrix.suite.name }}
7373
runs-on: ubuntu-latest
74+
timeout-minutes: 30
7475
strategy:
7576
fail-fast: false
7677
matrix:
@@ -137,7 +138,7 @@ jobs:
137138
--junitfile="reports/${{ inputs.stream }}-${{ matrix.suite.name }}.xml" \
138139
--junitfile-project-name="${{ matrix.suite.group }}" \
139140
--junitfile-testsuite-name="short" \
140-
--rerun-fails \
141+
--rerun-fails=2 \
141142
--format github-actions \
142143
--packages="./${{ matrix.suite.group }}/${{ matrix.suite.path }}/..." \
143144
-- -timeout=15m $EXTRA_GO_TEST_ARGS
@@ -156,6 +157,7 @@ jobs:
156157
needs: [build]
157158
name: e2e-core / ${{ inputs.stream }} / ${{ matrix.suite.name }}
158159
runs-on: ubuntu-latest
160+
timeout-minutes: 30
159161
strategy:
160162
fail-fast: false
161163
matrix:
@@ -204,6 +206,7 @@ jobs:
204206
needs: [build]
205207
name: e2e-optional / ${{ inputs.stream }} / ${{ matrix.suite.name }}
206208
runs-on: ubuntu-latest
209+
timeout-minutes: 30
207210
strategy:
208211
fail-fast: false
209212
matrix:

0 commit comments

Comments
 (0)