Skip to content

Commit bb48fe1

Browse files
fix(ci): increase CodeQL timeout + add provers to echidna-validation
CodeQL fixes: - Increase analyze job timeout from 15 to 60 minutes (CodeQL analysis frequently exceeds 15 min, causing 'waiting on results' hangs) ECHIDNA validation fixes: - Add 'Install proof provers' step to echidna-verify job (installs lean, coq, agda, isabelle, z3) which were missing, causing all prover verification to fail with 'not found' errors Fixes PR #133 red lights in valence-shell. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent a983895 commit bb48fe1

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
name: CodeQL Security Analysis
3+
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
schedule:
10+
- cron: '0 6 * * 1'
11+
12+
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
13+
# updates do not pile up queued runs against the shared account-wide
14+
# Actions concurrency pool. Applied only to read-only check workflows
15+
# (no publish/mutation), so cancelling a superseded run is always safe.
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
analyze:
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 60
27+
permissions:
28+
contents: read
29+
security-events: write
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
include:
34+
- language: javascript-typescript
35+
build-mode: none
36+
- language: cpp
37+
build-mode: none
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e # v6.0.3
42+
43+
- name: Initialize CodeQL
44+
uses: github/codeql-action/init@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v3
45+
with:
46+
languages: ${{ matrix.language }}
47+
build-mode: ${{ matrix.build-mode }}
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v3
51+
with:
52+
category: "/language:${{ matrix.language }}"

.github/workflows/echidna-validation.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
# valence-shell changes are not blocked by an unrelated upstream breakage.
2929
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
3030
runs-on: ubuntu-latest
31+
timeout-minutes: 30
3132
steps:
3233
- name: Checkout code
3334
uses: actions/checkout@1cce3390c2bfda521930d01229c073c7ff920824 # v6.0.2
@@ -49,6 +50,17 @@ jobs:
4950
cargo build --release --bin echidna
5051
echo "/tmp/echidna/target/release" >> $GITHUB_PATH
5152
53+
- name: Install proof provers
54+
run: |
55+
set -euo pipefail
56+
sudo apt-get update
57+
sudo apt-get install -y --no-install-recommends \
58+
lean \
59+
coq \
60+
agda \
61+
isabelle \
62+
z3
63+
5264
- name: Verify ECHIDNA available
5365
run: echidna list-provers
5466

@@ -60,6 +72,7 @@ jobs:
6072
correspondence:
6173
name: Lean 4 ↔ Rust Correspondence
6274
runs-on: ubuntu-latest
75+
timeout-minutes: 30
6376
steps:
6477
- name: Checkout code
6578
uses: actions/checkout@1cce3390c2bfda521930d01229c073c7ff920824 # v6.0.2

0 commit comments

Comments
 (0)