Conversation
…nned actions) Add .github/workflows/ci.yml with two independent jobs (hence two status checks): - **Build (lake)** — `leanprover/lean-action` installs the toolchain from `lean-toolchain`, fetches the Mathlib cache, and runs `lake build` (which also runs the in-file `native_decide` sanity checks). - **Field-file generators reproduce** — installs PARI/GP, re-runs `scripts/gen_pasta.py` / `scripts/gen_jubjub.py` over their committed outputs and `git diff --exit-code`s `Fields/Pasta.lean` / `Fields/Jubjub.lean`, so a hand-edit can no longer silently drift from its generator. Separate jobs so branch protection can require the build while leaving the PARI/GP-dependent generator check advisory. All actions are SHA-pinned (with `# vX.Y.Z` comments) and checkouts use `persist-credentials: false`. Add .github/workflows/zizmor.yml (`zizmorcore/zizmor-action`, `min-severity: informational`) to audit the workflows for unpinned uses, credential persistence, template injection, and other GitHub-Actions issues — matching `zcash/ironwood`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/ci.yml— the repo had no CI.Two independent jobs, so they surface as two separate status checks:
leanprover/lean-action@v1installs the toolchain fromlean-toolchain, fetches the Mathlib cache, and runslake build. That also exercises the in-filenative_decidesanity checks (curve points, scalar-mult witnesses, etc.).scripts/gen_pasta.py/scripts/gen_jubjub.pyover their committed outputs andgit diff --exit-codesCompElliptic/Fields/Pasta.lean/Jubjub.lean. This catches a hand-edit to a generated field file silently drifting from its generator (which had happened toFields/Pasta.lean).Triggers on push to
mainand on all PRs.🤖 Generated with Claude Code