CI workflows
Every workflow in .github/workflows — jobs, triggers and permissions.
Five workflows live in .github/workflows/. Every third-party action is
pinned to a commit SHA.
ci.yml — CI
| Aspect | Value |
|---|---|
| Triggers | push to main, PR to main, workflow_dispatch |
| Permissions | contents: read |
| Concurrency | grouped per ref, cancel-in-progress |
Jobs:
- go — matrix over
ubuntu-latest,macos-latest,windows-latest(fail-fast: false); checkout, mise with cache,mise run build,mise run test. - quality —
mise run ci(build, vet, test, race, coverage gate) and uploadscoverage.outas an artifact (14 days). The upload step is skipped whenenv.ACTis set — act's artifact server lacks theupload-artifact@v7protocol. - lint —
mise run lint(golangci-lint, actionlint, shellcheck, goreleaser check). - security —
mise run security(govulncheck). - docs — installs docs dependencies from the lockfile and runs
pnpm --dir docs build.
codeql.yml — CodeQL
| Aspect | Value |
|---|---|
| Triggers | push/PR to main, weekly cron 24 3 * * 1, workflow_dispatch |
| Permissions | contents: read; the analyze job adds actions/packages: read, security-events: write |
The analyze job runs a matrix over Go and javascript-typescript
(the docs site), initializes CodeQL, builds go build ./... for the Go
leg, and uploads SARIF under a per-language category.
dependency-review.yml — Dependency review
| Aspect | Value |
|---|---|
| Triggers | PR to main |
| Permissions | contents: read; the job adds pull-requests: write |
Runs actions/dependency-review-action with fail-on-severity: high and
comments the summary in the PR. Checkout uses persist-credentials: false.
release.yml — Release CLI
| Aspect | Value |
|---|---|
| Triggers | push of tags v*, workflow_dispatch with a dry_run input (default true) |
| Permissions | contents: write, id-token: write |
| Concurrency | grouped per ref, not cancel-in-progress |
The goreleaser job: checkout with full history and no persisted
credentials, mise toolchain, cosign installed only on real runs (tag
push or explicit dry_run: false). Two GoReleaser paths:
- snapshot dry run (dispatch with default input) —
release --snapshot --clean --skip=publish,sign, then verifiesdist/checksums.txtexists and lists the artifacts; never signs or publishes. - publish (tag push or explicit false) —
release --cleanwith signing.
Skill-release tags (<skill>/vX.Y.Z) do not match the v* filter, so
the two release namespaces stay independent.
scorecard.yml — OpenSSF Scorecard
| Aspect | Value |
|---|---|
| Triggers | branch_protection_rule, push to main, weekly cron 40 4 * * 1, workflow_dispatch |
| Permissions | read-all; the job adds id-token: write, security-events: write |
Runs ossf/scorecard-action with results_file: results.sarif and
publish_results: false (the repository is private; publishing must stay
off until it becomes public). Uploads the SARIF artifact (14 days) and
publishes it to code scanning.
Related
- Run all of these locally: How to run CI locally with act
- The release pipeline end to end: Release process