Skip to content

Commit b819abe

Browse files
feat: Certora CI
1 parent 1c0b329 commit b819abe

File tree

2 files changed

+70
-1
lines changed

2 files changed

+70
-1
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Certora Prover Submission Workflow
2+
description: |-
3+
This workflow submits Certora Prover jobs on the specified configurations. Once all
4+
jobs are successfully submitted, it will add a pending commit status to the commit.
5+
This status will be periodically updated with verification results of the jobs, along
6+
with the verification summary comment on the pull request.
7+
8+
For more information, please visit https://github.com/certora/certora-run-action.
9+
10+
on:
11+
pull_request:
12+
branches:
13+
- master
14+
- certora/specs
15+
workflow_dispatch:
16+
17+
jobs:
18+
certora_run_submission:
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
statuses: write
23+
pull-requests: write
24+
id-token: write
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
31+
# Run Certora munge script
32+
- name: Certora munge
33+
run: ./certora/scripts/patch.sh
34+
35+
# Submit verification jobs to Certora Prover
36+
- name: Submit verification jobs to Certora Prover
37+
uses: Certora/certora-run-action@v2
38+
with:
39+
# Add your configurations as lines, each line is separated.
40+
# Specify additional options for each configuration by adding them after the configuration.
41+
configurations: |-
42+
certora/confs/Balances.conf
43+
certora/confs/ConsistentState.conf
44+
certora/confs/ConsistentStateExtras.conf
45+
certora/confs/ConsistentStateExtras2.conf
46+
certora/confs/ConsistentStateExtras3Sanity.conf
47+
certora/confs/Enabled.conf
48+
certora/confs/Immutability.conf
49+
certora/confs/Liveness.conf
50+
certora/confs/PendingValues.conf
51+
certora/confs/Range.conf
52+
certora/confs/Reentrancy.conf
53+
certora/confs/Reverts.conf
54+
certora/confs/Roles.conf
55+
certora/confs/Timelock.conf
56+
certora/confs/TimelockRemovableTime.conf
57+
certora/confs/LostAssets.conf
58+
certora/confs/Conversions.conf
59+
certora/confs/ERC4626.conf
60+
certora/confs/Solvency.conf
61+
certora/confs/SolvencyInternal.conf
62+
solc-versions: 0.8.17 0.8.26
63+
job-name: "Verified Rules"
64+
certora-key: ${{ secrets.CERTORAKEY }}
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ broadcast/
1212
.env
1313

1414
# System Files
15-
.DS_Store
15+
.DS_Store
16+
17+
# certora generated files
18+
.certora_internal

0 commit comments

Comments
 (0)