Skip to content

ci: add build/lint/zizmor workflow and Dependabot - #10

Merged
lystopad merged 3 commits into
mainfrom
lystopad/ci-and-dependabot
Jul 22, 2026
Merged

lystopad merged 3 commits into
mainfrom
lystopad/ci-and-dependabot

Conversation

@lystopad

Copy link
Copy Markdown
Member

Adds basic CI and dependency automation to the repo (kept separate from the libsecp256k1 0.7.1 bump in #9).

Workflow (.github/workflows/ci.yml, ubuntu-latest)

  • go: gofmt check, go vet, go build, go test (native cgo).
  • golangci-lint: default linters (v2).
  • zizmor: GitHub Actions security scan, run offline (no token needed).

Hardening: workflow-level permissions: contents: read, all actions pinned to commit SHAs, persist-credentials: false on checkout. The workflow passes its own zizmor scan (no findings).

Lint fixes (to make the new checks green on existing code)

Dependabot (.github/dependabot.yml)

  • Weekly updates for gomod and github-actions. (Free on GitHub; no Advanced Security required.)

Verified locally: gofmt clean, go vet clean, golangci-lint 0 issues, tests pass, zizmor no findings.

lystopad added 2 commits July 22, 2026 09:39
gofmt curve.go (a stray //TODO comment) and check the ignored return
values in the Sign/Recover benchmarks, so the repo passes gofmt and
golangci-lint's default linters.
Adds a CI workflow on ubuntu-latest (gofmt, go vet, build, test,
golangci-lint) plus a zizmor workflow-security scan (offline). Actions are
pinned to commit SHAs with minimal contents:read permissions. Enables
Dependabot for gomod and github-actions.
Point zizmor at .github/workflows/ instead of the repo root. Scanning '.'
recursively picked up the vendored bitcoin-core workflows under
libsecp256k1/.github/, which are inert (GitHub only runs root workflows)
and produced spurious findings.
@lystopad
lystopad merged commit 5578829 into main Jul 22, 2026
3 checks passed
@lystopad
lystopad deleted the lystopad/ci-and-dependabot branch July 22, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants