Shared GitHub Actions CI for the metio organization: one reusable workflow per
language or build tool, so every project gets the same gates from one place.
| Workflow | For |
|---|---|
baseline.yml |
Every repository — secret scanning with leaks, the DCO gate, REUSE compliance, the prose lint of harper and the convention policies |
lint.yml |
Every project — breto run ci-lint (typos, yamllint, actionlint, zizmor, markdownlint) from the caller's @lint group |
golang.yml |
Go projects — build, race tests, vet, staticcheck, gosec, gofumpt, govulncheck, and (auto-detected) arch-go and envtest |
clojure.yml |
Clojure projects — test, clj-kondo, eastwood + splint, cljfmt, and clj-watson vulnerabilities, all through deps.edn aliases, with the downloaded dependencies cached per job |
rust.yml |
Rust projects — build and test with the locked dependencies, rustfmt, clippy with warnings as errors, and (with a deny.toml) cargo-deny |
hugo.yml |
Hugo websites — build with the caller's @docs tools, htmltest when configured, and the deploy from main to GitHub Pages or Cloudflare Pages |
maven.yml |
Maven (JVM) projects — the POM-driven build plus a javadoc gate, with the local repository cached |
maven-central-release.yml |
Maven Central releases — the change and quota gates, the signed deploy, and the GitHub release |
warm-cache.yml |
Every repository whose CI runs only on pull requests — saves the breto cache on main, where pull request and merge-queue runs can restore it |
More languages/tools follow the same shape.
The checks every repository runs, whatever its language. Each repository calls
the workflow from one job and gates on a second one named Baseline, so branch
protection requires the same check everywhere while the jobs behind it change
here:
name: Baseline
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
checks:
uses: metio/ci/.github/workflows/baseline.yml@<sha>
baseline:
name: Baseline
needs: [checks]
if: always()
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- env:
RESULT: ${{ needs.checks.result }}
run: '[ "$RESULT" = success ] || { echo "::error::the baseline checks ended in $RESULT"; exit 1; }'It runs leaks, reuse lint, harper and the convention policies on every
push and pull request, and dco
on pull requests that a person opened. harper reports its findings as warnings,
which leave the check green, until the metio repositories are free of them.
The lint checks every project runs, from the @lint group the caller's
.breto.edn names. The job runs breto run ci-lint, so a local run and CI
check the same things with the same versions:
jobs:
lint:
name: Lint # the check reads "Lint / ci-lint"
uses: metio/ci/.github/workflows/lint.yml@<sha>The Verify aggregate lists the lint job like any other. The sole input,
runs-on, exists for the rare runner override.
The Go pipeline is zero-config: every job installs the calling repo's
toolchain with the breto action from its .breto.edn, so CI runs the
exact versions the metio/toolchains groups pin — identical to a local
breto env — and a detect job skips the architecture gate when there's no
arch-go.yml. A controller with envtest-backed tests and a plain library use the
identical call. The repo must ship a .breto.edn naming @go (see below).
# .github/workflows/verify.yml in a Go project
# SPDX-License-Identifier: 0BSD
name: Verify
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
go:
name: Golang # checks then read "Golang / test", "Golang / lint", …
uses: metio/ci/.github/workflows/golang.yml@<sha>
# … the project's own non-Go jobs (reuse, yaml, docs, container image, dco) …
verify:
name: Verify
needs: [go] # plus the project's other jobs
if: always()
runs-on: ubuntu-latest
steps:
- env:
NEEDS: ${{ toJSON(needs) }}
run: |
bad=$(echo "$NEEDS" | jq -r 'to_entries[] | select(.value.result != "success" and .value.result != "skipped") | "\(.key)=\(.value.result)"')
[ -z "$bad" ] || { echo "::error::$bad"; exit 1; }@go provides every tool: go, staticcheck, gosec, gofumpt, govulncheck,
arch-go and modernize. A controller adds @envtest, which sets
KUBEBUILDER_ASSETS, so the envtest suite runs offline against the pinned
Kubernetes; the multi-version envtest
matrix is gone (its coverage lives in the kind smoke gate). The one thing detect
still decides: the architecture job runs only when an arch-go.yml is present;
otherwise it skips cleanly. Four optional inputs cover the variation: packages
(default ./...) limits the test job, for a repository whose generated
acceptance tests run in workflows of their own; test-timeout-minutes (default
30) and lint-timeout-minutes (default 15) give the test and lint jobs more
time; tags passes build tags to every job that
loads packages; runs-on exists for the rare runner override.
The Rust pipeline installs the calling repo's toolchain with the breto
action from its .breto.edn, which names @rust. @rust provides rustup,
whose cargo, rustfmt and clippy proxies run the toolchain that
rust-toolchain.toml names. The lint job fails on any clippy warning; a lint
the project rejects belongs in the [lints] table of Cargo.toml. A detect
job runs the dependencies job only when a deny.toml exists, and such a repo
also names cargo-deny in its .breto.edn.
# .github/workflows/verify.yml in a Rust project
# SPDX-License-Identifier: 0BSD
name: Verify
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
rust:
name: Rust # checks then read "Rust / test", "Rust / lint", …
uses: metio/ci/.github/workflows/rust.yml@<sha>
# … the project's own jobs, such as a cross-target build matrix …
verify:
name: Verify
needs: [rust] # plus the project's other jobs
if: always()
runs-on: ubuntu-latest
steps:
- env:
NEEDS: ${{ toJSON(needs) }}
run: |
bad=$(echo "$NEEDS" | jq -r 'to_entries[] | select(.value.result != "success" and .value.result != "skipped") | "\(.key)=\(.value.result)"')
[ -z "$bad" ] || { echo "::error::$bad"; exit 1; }The inputs are runs-on and test-timeout-minutes (30 by default).
The Hugo pipeline installs the calling repo's tools with the breto
action from its .breto.edn, which names @docs, so CI builds with the same
hugo and htmltest as breto run does locally. The build job runs an
optional prepare command, builds the site in source, and checks the result
with htmltest when a config exists: htmltest-config, or else the first of
.htmltest.yml and htmltest.yml in the repository root and then in source.
Its DirectoryPath is relative to the repository root. The site is deployed
only for a push, a schedule or a manual run on branch (main by default), to
one of two targets:
cnameset: thedeployjob pushes the site togh-pageswithcnameas its domain.cloudflare-projectset: thedeploy-cloudflarejob uploads the site to that Cloudflare Pages project withwrangler pages deploy, as a deployment ofbranchstamped with the commit. It reads the secretsCLOUDFLARE_API_TOKEN(an API token with the account permission Cloudflare Pages: Edit) andCLOUDFLARE_ACCOUNT_ID, which the caller passes explicitly. Cloudflare publishes the upload as production whenbranchis the project's production branch.
Without either, nothing is deployed, and a call setting both fails in the
build job. Both deploy jobs share one concurrency group, so a repository runs
one deploy at a time. The calling job grants contents: write, which the
deploy job asks for; deploy-cloudflare itself runs with contents: read.
# .github/workflows/website.yml in a project with a Hugo site in docs/
# SPDX-License-Identifier: 0BSD
name: Website
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: 45 4 * * MON
workflow_dispatch:
permissions:
contents: read
jobs:
website:
name: Website # checks then read "Website / build"
uses: metio/ci/.github/workflows/hugo.yml@<sha>
permissions:
contents: write
with:
source: docs
prepare: hack/gen-docs-data.sh
cname: example.projects.metio.wtfFor Cloudflare Pages, the call names the project and passes the two secrets:
website:
name: Website
uses: metio/ci/.github/workflows/hugo.yml@<sha>
permissions:
contents: write
with:
source: docs
cloudflare-project: example
secrets:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}The inputs are runs-on, source (. by default), prepare,
htmltest-config, cname, cloudflare-project, branch and
build-timeout-minutes (30 by default).
The Maven pipeline is breto-driven and POM-driven: the JDK and Maven come
from the calling repo's .breto.edn, and the gates themselves are the build. A
metio Java project inherits wtf.metio.maven:maven-parent, which configures the
static-analysis battery (checkstyle, pmd, spotbugs, dependency analysis, pitest)
into the verify lifecycle — so a plugin is added and tuned in the POM, where
Renovate maintains its version, rather than as another tool call in CI.
# .github/workflows/verify.yml in a Maven project
# SPDX-License-Identifier: 0BSD
name: Verify
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
maven:
name: Maven # checks then read "Maven / build", "Maven / javadoc"
uses: metio/ci/.github/workflows/maven.yml@<sha>
# … the project's own non-Maven jobs (reuse, yaml, markdown, dco, policy …) …
verify:
name: Verify
needs: [maven] # plus the project's other jobs
if: always()
runs-on: ubuntu-latest
steps:
- env:
NEEDS: ${{ toJSON(needs) }}
run: |
bad=$(echo "$NEEDS" | jq -r 'to_entries[] | select(.value.result != "success" and .value.result != "skipped") | "\(.key)=\(.value.result)"')
[ -z "$bad" ] || { echo "::error::$bad"; exit 1; }The build job runs mvn verify; the javadoc job compiles the sources and
renders the Javadoc, because the javadoc plugin otherwise runs only in the
release profile and a broken doc comment would surface at release time. Both
jobs cache ~/.m2/repository keyed on the POMs. Four optional inputs cover the
variation: goals (default verify), maven-args (default
--batch-mode --no-transfer-progress), javadoc (set false for a project
with no Java sources), and the shared runs-on.
maven-central-release.yml releases a project inheriting maven-parent on its
monthly slot (see central-quota). The gate job asks
needs-release whether paths changed since the last release
and central-quota whether the month's budget has room; only then does the
central job set the calendar version, sign and deploy through the release
profile, and the github job create the release that central-quota counts.
# .github/workflows/release.yml in a Maven project
name: Release
on:
schedule:
- cron: 58 20 17 * * # the repo's slot in krei's release calendar
workflow_dispatch:
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
release:
uses: metio/ci/.github/workflows/maven-central-release.yml@<sha>
with:
paths: src/main/java pom.xml
secrets: inheritThe caller provides the secrets MAVEN_CENTRAL_USERNAME, MAVEN_CENTRAL_TOKEN,
GPG_SECRET_KEY_BASE64 and GPG_SECRET_KEY_PASSWORD. deploy-args adds
arguments to the deploy, such as --projects a --also-make to publish only part
of a reactor.
A run restores only the caches of its own ref and of the default branch. CI that
runs only on pull requests and in the merge queue therefore saves every cache
under a ref no later run reads, and each run installs its breto packages from
scratch. warm-cache.yml runs the breto action on main for each
setup the caller's CI uses, so the action saves its cache under the key those
jobs compute:
# .github/workflows/warm-cache.yml in any project
name: Warm cache
on:
push:
branches: [main]
schedule:
- cron: 23 4 * * MON # a new breto release changes the key
workflow_dispatch:
permissions:
contents: read
jobs:
warm:
name: Warm
uses: metio/ci/.github/workflows/warm-cache.yml@<sha>combinations lists the setups as JSON, one object per runner and project:
runs-on, project (default .), registries (default
github:metio/toolchains), and repository with path for a project the CI
job checks out from another repository. The default warms ubuntu-latest with
the repository's own .breto.edn, which is what lint.yml, rust.yml and the
other pipelines here set up. A setup that differs from the CI job's in any of
these warms a key no run looks up. The caches of the language pipelines
(cargo, Go modules, Maven, Clojure) are keyed inside those workflows and stay
cold on pull requests unless the caller's CI also runs on main.
Composite actions for release pipelines — call them directly from a repo's release workflow.
Installs breto from its signed release, installs
the packages of the project's .breto.edn and puts the project's tools and
variables on PATH and in the environment of the later steps:
- uses: actions/checkout@<sha>
- uses: metio/ci/breto@<sha>
with:
registries: github:metio/toolchains
- run: breto run ci-lintversion picks the breto release (default latest), project the directory
holding the .breto.edn (default .), and cache: false skips the Actions cache
of installed packages. packages installs the packages it lists, separated by
spaces, in place of the project's .breto.edn. registries adds registries after
breto's default metio/packages, one per line: a directory in the workspace,
github:OWNER/REPO or gitlab:gitlab.com/GROUP/PROJECT for a registry published as
signed releases, or a breto registry map for other hosts and signers:
registries: |
github:metio/toolchains
{:forgejo "codeberg.org/OWNER/REPO" :signature false}The cache key names the platform, the breto release, the configuration with the
project's .breto.edn and the files of local registries, and the release each
published registry resolves to. The action restores the newest cache of the same
configuration, then runs breto update on the published registries, so a
restored cache never decides which registry release is active, and keys the cache
on the releases that update activated. It saves the cache after breto env only
when that key differs from the one it restored, so a registry that moves a
package to a new version produces one new cache, which later runs restore
exactly.
Turns an uberjar into self-contained executables for Linux and macOS on amd64 and
arm64, by prepending the babashka binary of each platform to it. A babashka
executable carries no JVM, so it suits programs that babashka can run as they are;
programs that load Java libraries need a native image or a JVM instead. It uses the
version of bb on PATH, so install that first with breto.
- run: bb uberjar target/tool.jar -m tool.main
- id: executable
uses: metio/ci/babashka-executable@<sha>
with:
name: tool
jar: target/tool.jar
version: ${{ steps.version.outputs.version }}
- uses: metio/ci/cosign-sign-blob@<sha>
with:
file: ${{ steps.executable.outputs.checksums }}
- run: gh release create "$VERSION" dist/*Scans the commits a change adds for secrets with
betterleaks: the base..head range
of a pull request or a merge group, the before..after range of a push, and the
whole history on any other event. The job checks the repository out with fetch-depth: 0:
- uses: actions/checkout@<sha>
with:
fetch-depth: 0
persist-credentials: false
- uses: metio/ci/leaks@<sha>Findings are redacted from the log. A finding that is no secret, such as a test
fixture, goes into .betterleaksignore at the repository root as the fingerprint
betterleaks prints for it. range takes git log options in place of the range
the event implies, such as --all, and path names another repository in the
workspace to scan.
Lints the prose of the Markdown files a repository tracks with
harper. It reads docs and kb, or the
whole tree when neither exists, and skips the files git marks
linguist-generated in .gitattributes, since generated prose is fixed where
it is generated. Every finding becomes an annotation on its line:
- uses: actions/checkout@<sha>
with:
persist-credentials: false
- uses: metio/ci/harper@<sha>Spell checking and title case are off, and so are the rules that mostly
misfire on code spans, list items and tool names: SentenceCapitalization,
SplitWords, OrthographicConsistency, ExpandConfiguration, CompoundNouns,
MassNouns and Everyone. ignore skips further rules, paths names what to lint
in place of docs and kb, and fail: false turns findings into warnings
that leave the step green. harper/harper.sh runs the same lint outside a
workflow, and the ci-harper command of metio/toolchains runs the same rules
locally.
The org's single version calculator (see Versioning). Named for the scheme so another scheme could be added alongside it later:
- id: version
uses: metio/ci/calver@<sha>
# with: { prefix: v } # "v" prefix for the default shape (e.g. Terraform-provider tags)
# with: { library: true } # imported Go module → v1.YYYYMMDD.SSSSS
- run: echo "${{ steps.version.outputs.version }}" # 2026.6.20143022, or v1.20260620.52222 in library modeClassifies the repo and emits library (true for an imported Go library — a Go
module with no package main), which you pass straight to calver. So a release
workflow is one shape for every repo:
- id: kind
uses: metio/ci/detect-repo-type@<sha>
- id: version
uses: metio/ci/calver@<sha>
with:
library: ${{ steps.kind.outputs.library }}Decides whether a release is warranted — true on a first release (no prior
tag) or when commits since the last release touched the given paths, so a
scheduled run no-ops on a quiet period. Needs a full-history checkout:
- uses: actions/checkout@<sha>
with:
fetch-depth: 0
- id: gate
uses: metio/ci/needs-release@<sha>
with:
paths: go.mod main.go internal api Dockerfile
- if: steps.gate.outputs.needed == 'true'
run: echo "releasing ${{ steps.gate.outputs.last }} → next"In a monorepo releasing several units with prefixed tags (myapp-2026.7.1…),
scope the boundary to one unit's tags with tag-match — otherwise another
unit's newer tag hides this unit's pending changes:
- id: gate
uses: metio/ci/needs-release@<sha>
with:
paths: units/myapp
tag-match: myapp-*Installs git-cliff and renders release notes for a version using the org-wide
git-cliff config, writing them to a file for gh release create --notes-file:
- id: notes
uses: metio/ci/release-notes@<sha>
with:
version: ${{ steps.version.outputs.version }}
previous: ${{ steps.gate.outputs.last }} # empty on the first release
- run: gh release create "$VERSION" --notes-file "${{ steps.notes.outputs.file }}"The git-cliff version and the config pin live in the action (Renovate bumps
both), so consumers just bump the action ref — no per-repo git-cliff wiring. This
repo's own release.yml uses it.
For one unit of a monorepo, scope the notes to the unit's files
(include-paths) and its tag lineage (tag-pattern) so another unit's
commits and tags never leak into this unit's changelog:
- id: notes
uses: metio/ci/release-notes@<sha>
with:
version: myapp-${{ steps.version.outputs.version }}
previous: ${{ steps.gate.outputs.last }}
include-paths: units/myapp/**
tag-pattern: ^myapp-A release's notes cover the range since the previous tag, and that lower bound is
read (via needs-release) when the run starts — before the run
creates its own tag. Two merges in quick succession would each read the bound
before either has tagged, so both releases get nearly identical, overlapping
notes. concurrency is a per-workflow key, so it can't live in these actions —
every release workflow that uses release-notes must add it itself:
# top level in release.yml, alongside `on:` / `permissions:`
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: falseQueueing (never cancelling the in-flight run) lets the earlier release finish and
tag first, so the next run reads that tag and its notes start there. Moving the
notes step later does not fix this — if two runs' release jobs interleave, the
later-triggered one can still tag first and overlap; serializing the runs is what
guarantees ordering. Trade-off: with cancel-in-progress: false, three merges
inside one run's duration keep only the newest queued run (GitHub cancels the
middle one), so that one calendar version is skipped — no commits are lost from
the changelog, there's just no separate release for it.
Maven Central meters publishing per organization: 7 releases a calendar
month on the free tier, averaged over a rolling three-month window (plus 1,167
files and 78 MB). That budget is shared by every metio repo publishing under the
wtf.metio namespace, so no single repo's workflow can tell whether one more
release fits. This action counts what the Central-publishing repos already
released this month and answers that question:
- id: quota
uses: metio/ci/central-quota@<sha>
- if: steps.gate.outputs.needed == 'true' && steps.quota.outputs.available == 'true'
run: mvn deployThe canonical repo list lives in the action's repos default — add a repo there
when it starts publishing, and every caller picks it up on the next pin bump.
Skipping costs nothing: needs-release measures against the
last release, not the last run, so a repo passed over in a full month still
sees its changes at its next slot.
Central-publishing repos do not release per merge. Each runs a monthly
scheduled workflow on its own day-of-month slot, gated on
needs-release (did anything change?) and central-quota
(is there budget?). krei writes these workflows
and plans the slots from each repo's :release cadence: a hash of the repo id
picks the day, a taken day passes on to the next free one, and :after places a
repo after the ones it builds on, so a downstream repo's own slot already sees
the new parent. Staggering the slots spreads the deployments through the month
instead of bursting them. Each release.yml carries its slot in its cron line.
Seven slots fit a budget of seven, and in a typical month most repos have no
changes and skip themselves. The quota guard holds the line when manual
workflow_dispatch runs push a month past the limit. The limit is a three-month average, so an
occasional busy month (a security fix, a coordinated bump) is expected to be fine.
A repo earns a slot by deploying to Central from its release workflow, which is
not the same as having a pom.xml: ilo is a Maven project that ships native
binaries on its GitHub release.
This applies only to Maven Central. GitHub releases, container images, and Go modules are unmetered, so those repos keep releasing on every qualifying push.
Installs cosign and keyless-signs a file, writing <file>.bundle (e.g. the
checksums). Needs permissions: { id-token: write }:
- uses: metio/ci/cosign-sign-blob@<sha>
with:
file: dist/SHA256SUMSBuilds and pushes a multi-arch image (SBOM + provenance + OCI labels) and signs
it with cosign keyless. Needs permissions: { id-token: write, packages: write, contents: read }:
- id: image
uses: metio/ci/container-release@<sha>
with:
image: ghcr.io/metio/jaas
version: ${{ steps.version.outputs.version }}Each workflow ends in one aggregate job — Verify for the PR gate (build,
unit + integration tests, lint, security, docs, container scan) and, where a repo
has it, System Tests for the real-cluster end-to-end layer. Mark only those
aggregates required in branch protection, then turn on auto-merge. Each runs
if: always(), needs every other job in its workflow, and fails unless each is
success or skipped. Because each is a single, fixed-name check:
- a skipped optional gate doesn't block merge;
- the envtest matrix's per-version job names can change freely;
- adding or removing jobs never touches branch protection.
That's the zero-maintenance auto-merge gate.
The workflows and actions in this repo are checked against conftest
policies (Rego) in policy/ — the org conventions a YAML linter can't
know. The policy job in verify.yml runs them on every PR: conftest verify
runs the policies' own unit tests, then conftest test checks the shipped files.
Run the same locally with conftest verify --policy policy, with conftest from
breto install conftest.
Each rule is a deny, so a violation fails the gate and blocks the merge:
- SHA-pinned actions — every
uses:is a 40-char commit SHA (Renovate keeps it current); a mutable tag or branch ref lets the ref's owner change what runs after review. Local./anddocker://refs are exempt. - No local action refs in reusable workflows — a
uses: ./namein a reusable workflow resolves against the caller's checkout, where the sibling is absent; reusable workflows must use the absolutemetio/ci/<name>@<sha>form. - No untrusted run interpolation — attacker-influenced contexts
(
github.event.*,github.head_ref,github.base_ref) are never expanded straight into arun:shell; route them throughenv:and reference the variable. - Workflow permissions — every workflow declares a top-level
permissions:block instead of inheriting the broad default token scope. - Release concurrency — a release workflow using
release-notesdeclares a top-levelconcurrencyblock, so two near-simultaneous runs can't read the same previous tag and emit overlapping notes. - Job timeouts — every job declares
timeout-minutes, so a hung step can't hold a runner for GitHub's 360-minute default. Jobs that call a reusable workflow are exempt (GitHub rejectstimeout-minutesthere). - Non-root containers — the final stage of every
ContainerfileandDockerfiledeclares aUSERthat is neitherrootnor uid0; without one, the image runs as whatever its base image defaults to. An image that ships only data, or has to run as root, such as a development shell, states why in a label of its final stage instead:LABEL wtf.metio.ci.root-allowed="data image, runs nothing". The reason must not be empty, and a label of an earlier stage does not count.
The policy-check composite action carries the policies with it,
so any metio repo gets the same checks with two lines — check out the repo, then
run the action:
# in a project's verify.yml
jobs:
policy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@<sha>
- uses: metio/ci/policy-check@<sha>
# with: { paths: .github/workflows } # default: workflows + every action.ymlIt installs conftest, runs the policy unit tests, then checks the repo's
.github/workflows and every action.yml/action.yaml. Add the policy job to
the repo's Verify aggregate so a violation
blocks the merge. The policies live at the action's pinned ref, so bumping the
policy-check pin (Renovate does this) updates the rules too.
Every commit must carry a Signed-off-by: trailer (git commit --signoff), so
each contribution records agreement to the DCO.
The dco composite action enforces it over the pull request range, and
the Baseline workflow runs it in every repository, so the required
Baseline check fails a pull request with an unsigned commit. Bots (Renovate,
Dependabot) can not sign off, so their pull requests skip it.
The calver action is the org's single version calculator:
YYYY.M.D with the UTC time-of-day appended to the day (e.g. 2026.6.20143022).
Second precision lifts the one-release-per-day ceiling of a date-only scheme, and
the three leading-zero-free components keep it valid semver, so container images,
Helm charts, and Terraform providers can all consume it.
Imported Go libraries can't use that shape: a CalVer major (2026) is ≥ 2, so
Go's module rules would force a /v2026 suffix in the import path that changes
every year. CalVer's library mode keeps them under one scheme anyway —
v1.YYYYMMDD.SSSSS (e.g. v1.20260620.52222): the major is pinned at 1 (a
valid v1.x.y module, no path suffix), the padded date sits in the minor so
versions stay ordered, and seconds-since-midnight fills the patch for second
precision with no leading zero. Every release is therefore a minor bump within
v1, which Renovate offers (and can auto-merge) downstream without it ever being
gated as a major update. The trade-off: pinning the major at 1 gives up
semver's breaking-change signal, so consumers should pin versions rather than
assume v1.x is non-breaking.
Consume these workflows and actions pinned to a commit SHA — first-party
metio/ci/* refs included, exactly like any third-party action — with Renovate
keeping the pins current. A mutable @main ref would let a change run in a
consumer's pipeline before it was reviewed; the SHA pin plus Renovate is the
zero-manual-work path. The examples above abbreviate the ref as @<sha> for
brevity.
0BSD.