Repository navigation
Description
Summary
Set up the .github repo so it can host shared composite actions under actions/<name>/ that other repos in the org pin by SHA. This must be in place before the first action is added.
Tasks
-
CI workflow
.github/workflows/ci.yml(name: CI), with nopaths:filters, containing:lint(Lint): actionlint on all workflows andaction.ymlfiles (also zizmor, if we adopt it);test(Test): tests of each composite action. A job calls./actions/<name>with fixtures (for example, good and bad PR titles, gate input matrices, a scan of a tiny image). Each later action PR adds its own tests here;passed(CI passed): the gate, withneeds:on every other job andif: always(). It fails if any needed job failed or was cancelled.
-
Ruleset on the default branch that requires only
CI passed(source: GitHub Actions). A maintainer has to switch it on after the check has reported once. -
Dependabot
dependabot.yml: thegithub-actionsecosystem withdirectoriescovering/and everyactions/*folder, grouped. Every new action has to add its folder here. -
CODEOWNERS for
actions/and.github/workflows/. -
CodeQL default setup (language
actions). -
Tag and release process:
- signed, annotated semver tags
vMAJOR.MINOR.PATCH; - GitHub releases with immutable releases switched on;
- release notes in the org's standard format;
- no moving major tags (
v1), because callers pin SHAs and Dependabot needs exact tags to bump@<sha> # vX.Y.Z; - breaking changes (new required inputs, changed check semantics) only in a major version, and the release notes say what callers have to change.
Document the process in the repo's README or a
RELEASING.md. - signed, annotated semver tags
Acceptance criteria
CI passedreports on PRs to the default branch, and the ruleset requires it.- Dependabot opens PRs for pins in workflows and in
actions/*. - The release process is documented. The first tag (
v1.0.0) is cut once the first action lands, not in this issue.
Part of the parent issue on sharing workflow steps as composite actions.
Activity