diff --git a/.forbidden-words-allow b/.forbidden-words-allow index 86a8e65..7d5504d 100644 --- a/.forbidden-words-allow +++ b/.forbidden-words-allow @@ -7,5 +7,3 @@ scripts/forbidden_words.py | * | the check's own rule list, its documentation and the usage examples scripts/set_byline.py | placeholder | prints the names of the placeholders to fill again after a brand swap LICENSE | sell | the MIT licence grants the right to "sell copies" of the software -SETTINGS.md | hello@luminare.tech | the organization's one inbox, which the oss@, conduct@ and security@ aliases deliver to (section 5) -PLACEHOLDERS.md | hello@luminare.tech | names the one inbox that the role aliases deliver to diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index cc95538..3339cc5 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,28 +1,9 @@ - + ## What and why - - Closes # -## How it was tested - - - -## Checklist - -- [ ] The title follows [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) (`feat:`, `fix:`, `docs:` …); breaking changes use `!`. -- [ ] Every commit is signed off (`git commit -s`, [DCO](https://developercertificate.org/)). -- [ ] Tests were added or updated, and the repository's test command passes locally. -- [ ] Documentation was updated where behaviour changed. -- [ ] Large changes were agreed in an issue first. -- [ ] No secrets, tokens, licence keys, IPs, hostnames or player data are included anywhere in this change. +- [ ] Title follows [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) and every commit is signed off (`git commit -s`). +- [ ] Tests and docs updated where behaviour changed; the test command passes. +- [ ] No secrets, tokens, IPs, hostnames or user data in this change. diff --git a/ACCESSIBILITY.md b/ACCESSIBILITY.md index d5c1601..a320bfe 100644 --- a/ACCESSIBILITY.md +++ b/ACCESSIBILITY.md @@ -1,27 +1,10 @@ # Accessibility -This applies to every repository in [luminare-dev](https://github.com/luminare-dev) that does not -have its own `ACCESSIBILITY.md`. - -The projects here are mostly command-line tools, configuration and documentation. The maintainers -want them to work with screen readers, keyboard-only use, zoom and high-contrast settings. This is -best effort, not a formal conformance claim. - -## What the projects aim for - -- Documentation in plain Markdown with real headings, lists and tables, so that it can be read - and navigated with assistive technology. -- Alt text for every image, and a text description of what every GIF or video demo shows. -- Dashboards, charts and terminal output that do not rely on colour alone: values, labels or - symbols carry the same information. -- Examples as copyable text, never only as screenshots. - -## Reporting a barrier - -- Open an issue in the affected repository (form "Bug report") and describe what you tried, the - assistive technology or setting you use, and what stopped you. If you are not sure which - repository it belongs to, start a [discussion](https://github.com/orgs/luminare-dev/discussions). -- If GitHub itself is the barrier, write to instead. - -Reports are handled like bug reports: the maintainers aim for a first reply within 7 days, best -effort. +The projects here should work with screen readers, keyboard-only use, zoom and high-contrast +settings: real headings in the docs, alt text for images, no information carried by colour alone, +and examples as copyable text. This is best effort, not a formal conformance claim. + +If something gets in your way, open a bug report in the affected repository (or a +[discussion](https://github.com/orgs/luminare-dev/discussions) if unsure) and describe what you +tried and the assistive technology you use. If GitHub itself is the barrier, write to +. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6d590d1..6beeea7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,131 +1,44 @@ # Contributing -Thank you for helping. This guide applies to every repository in -[luminare-dev](https://github.com/luminare-dev) that does not have its own `CONTRIBUTING.md`. -If a repository has one, that file wins. +This applies to every [luminare-dev](https://github.com/luminare-dev) repository without its own +`CONTRIBUTING.md`. -## Before you start +- Questions and ideas go to [Discussions](https://github.com/orgs/luminare-dev/discussions). + Security problems go through [SECURITY.md](https://github.com/luminare-dev/.github/blob/main/SECURITY.md), never in public. +- Please open an issue before a large change (new feature, new dependency, changed behaviour or + interface). Small fixes can go straight to a pull request. +- Each repository's README explains how to run its tests. Run them before you push. -- **Questions and ideas** go to [Discussions](https://github.com/orgs/luminare-dev/discussions), - not to issues. -- **Security problems** are never reported in public. Follow [SECURITY.md](https://github.com/luminare-dev/.github/blob/main/SECURITY.md). -- **Search first.** Look through the open and closed issues of the repository before you open a new one. -- **Open an issue before a large pull request.** Large means a new feature, a change in behaviour, - a new dependency, a change to a public interface (variables, role defaults, metrics, file - formats), or more than about 100 changed lines. Agreeing on the approach first saves you work. - Typo fixes, documentation fixes and small, obvious bug fixes can go straight to a pull request. - -## Development setup and tests - -Every repository explains its own setup in the **Development** section of its `README.md` (or in -its own `CONTRIBUTING.md`, if it has one). That section names: - -- the tools and versions you need; -- the one command that runs the linters and tests (the same command CI runs); -- any extra checks, for example Molecule scenarios or rule tests. - -Run that command before you push. A pull request is reviewed once CI is green. For contributors -outside the organization, a maintainer starts the CI run after a first look. - -## Commit messages: Conventional Commits +## Pull requests -Commit messages and pull request titles follow -[Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/). Release notes and -version numbers are generated from them, so the type matters. +Pull requests are squash-merged, so the title becomes the commit message and a changelog line. +It must follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/): +lower-case imperative summary, no full stop, at most 100 characters. ```text -(): - - - -Signed-off-by: Your Name +fix(backup): retry the upload after a timeout ``` -| Type | Use it for | Changelog section | Release effect | -|---|---|---|---| -| `feat` | a new feature | Added | minor version | -| `fix` | a bug fix | Fixed | patch version | -| `perf` | a performance improvement without a change in behaviour | Changed | patch version | -| `security` | the fix for a security problem, used once the advisory is public | Security | patch version | -| `revert` | reverting an earlier commit | Reverted | patch version | -| `docs` | documentation only | not listed | no release on its own | -| `refactor`, `test`, `style` | code changes that do not change behaviour | not listed | no release on their own | -| `build`, `ci`, `chore` | build system, CI, maintenance | not listed | no release on their own | - -A breaking change adds `!` after the type (`feat!: drop support for …`) or a -`BREAKING CHANGE:` footer. It means a major version, or a minor version before 1.0.0. The -sections and release effects are those of the release tooling (release-please) in repositories -built from the organization's template. - -Pull requests are squash-merged, so **the pull request title becomes the commit message** and must -follow the same format. The `pr / pr-title` check also requires: +`feat` makes a minor release, `fix`, `perf`, `security` and `revert` a patch release; `docs`, +`refactor`, `test`, `style`, `build`, `ci` and `chore` do not release on their own. A breaking +change adds `!` (`feat!: ...`). Do not edit `CHANGELOG.md`; release-please writes it. -- the summary starts with a lower-case letter (an acronym such as `TLS` is fine) and uses the - imperative: "add", not "added"; -- no full stop at the end; -- at most 100 characters for the whole title; -- a scope, if any, in lower case; -- wording that describes the change only: the title becomes a line of the release notes, so it - goes through the same wording check as the repository's files. +Keep one topic per pull request. Add or update tests and docs for every behaviour change. -Do not edit `CHANGELOG.md` by hand; the release tooling writes it. +## Sign-off (DCO) -## Developer Certificate of Origin (DCO) - -Every commit must be signed off. The sign-off certifies that you wrote the change or otherwise -have the right to submit it under the project's licence, as described in the -[Developer Certificate of Origin 1.1](https://developercertificate.org/). - -```bash -git commit -s -m "fix(scope): correct the retry delay" -``` +Every commit needs a `Signed-off-by` line (`git commit -s`), which certifies the +[Developer Certificate of Origin](https://developercertificate.org/). Forgot it? Run +`git rebase --signoff main` and force-push your branch. There is no CLA; your contribution is +licensed under the repository's licence. -`-s` adds a line like `Signed-off-by: Your Name ` with the name and email from -your Git configuration. Use your real name or a known identity; anonymous sign-offs cannot be -accepted. You may use your GitHub `noreply` email address. +## No secrets or personal data -- **Forgot the sign-off on the last commit?** `git commit --amend --no-edit -s`, then - `git push --force-with-lease` to your branch. -- **On several commits?** `git rebase --signoff main`, then `git push --force-with-lease`. - -A DCO check runs on every pull request. There is no Contributor License Agreement. - -**Inbound = outbound.** Your contribution is licensed under the same licence as the repository you -contribute to (see its `LICENSE` file). You keep your copyright. - -You are responsible for everything you submit, including code produced with tools or generators. -Only submit code you have the right to license this way. Do not copy code from projects whose -licence is incompatible with the repository's licence. - -## Pull requests - -- One topic per pull request. Keep unrelated refactoring out. -- Add or update tests for every behaviour change, and update the documentation in the same pull - request. -- Fill in the pull request template. Link the issue it closes (`Closes #123`). -- Be ready for review comments. A maintainer may push small fixes to your branch if you allow edits - from maintainers. - -## Never post secrets or personal data - -Issues, discussions, pull requests, logs, screenshots and test fixtures are public. **Never -include:** - -- passwords, API tokens, SSH or TLS private keys, licence keys or server keys; -- `.env` files, vault passwords or unredacted configuration files; -- public IP addresses, internal hostnames or tenant IDs; -- player or user data: names, account identifiers, IP addresses, chat logs. - -Replace each value with a placeholder such as `` or `203.0.113.10` (a documentation -address). If you posted a secret by accident, **revoke or rotate it at once**. Deleting or editing -the post does not remove copies that were already sent in notifications. +Issues, pull requests, logs and screenshots are public. Never post passwords, tokens, keys, +`.env` files, IP addresses, hostnames or user data; use placeholders like ``. If you +leaked a secret, rotate it right away. ## Response times -Maintainers aim to give a first reply to new issues and pull requests within 7 days. This is best -effort, not a guarantee. Please do not ping repeatedly; a polite bump after 14 days is fine. - -## Code of Conduct - -Everyone who takes part follows the [Code of Conduct](https://github.com/luminare-dev/.github/blob/main/CODE_OF_CONDUCT.md). Report problems to -. +Replies are best effort, usually within a week. Everyone follows the +[Code of Conduct](https://github.com/luminare-dev/.github/blob/main/CODE_OF_CONDUCT.md). diff --git a/PLACEHOLDERS.md b/PLACEHOLDERS.md deleted file mode 100644 index 1ef174b..0000000 --- a/PLACEHOLDERS.md +++ /dev/null @@ -1,22 +0,0 @@ -# Placeholders - -No placeholder is left open in this repository. `python3 scripts/forbidden_words.py` (the -publish gate, which CI runs because this repository is not a template) fails on any `{{…}}` that -appears again. - -| Placeholder | Where | Status | -|---|---|---| -| `{{AUTHOR_NAME}}` | `LICENSE` (copyright line), `NOTICE` (copyright line), `README.md` (personal byline, commented out) | Filled with the copyright holder's full legal name, a natural person. Use the same form of the name in every repository. | - -## Values to confirm (not placeholders) - -| Value | Where | Why | -|---|---|---| -| `ci / lint-test`, `secrets / gitleaks`, `pr / pr-title`, `DCO` | `rulesets/main.json` (required status checks) | They must match the check names that the CI workflows and the DCO app report in each repository. A required check that never runs blocks every merge. | -| Branch `main` | `profile/README.md` (header image URLs) | The images load from `raw.githubusercontent.com/luminare-dev/.github/main/docs/brand/`. | -| `https://luminare.tech` | `profile/README.md` | The link should answer before the profile goes public. | -| `https://luminare.tech/open-source/` | `README.md` (byline) | The page must answer before the push. | -| Galaxy namespace `luminare` | `profile/README.md` (project table: `luminare.infra_edge`, `luminare.gameserver`) | The namespace must be requested from Galaxy. Switch both names to `luminare_dev` if Galaxy does not grant `luminare`. | -| `oss@`, `conduct@`, `security@luminare.tech` | profile, `SUPPORT.md`, `CODE_OF_CONDUCT.md`, `SECURITY.md`, `ACCESSIBILITY.md`, `CONTRIBUTING.md` | Aliases that deliver into the one `hello@luminare.tech` inbox. They must receive mail before the first push (`SETTINGS.md`, section 5). | -| Organization Discussions | issue chooser, `SUPPORT.md`, `CONTRIBUTING.md`, profile | The links point to `https://github.com/orgs/luminare-dev/discussions`, which exists only after organization Discussions are turned on (`SETTINGS.md`, section 2). | -| `oss-template` marked *available* | `profile/README.md` (project table) | True once `luminare-dev/oss-template` is public. Publish that repository before this one, so the profile link never points to a missing repository. | diff --git a/README.md b/README.md index e28daa6..d212e4b 100644 --- a/README.md +++ b/README.md @@ -15,127 +15,47 @@ # .github -Default community health files, issue forms and shared labels for every repository in the -[luminare-dev](https://github.com/luminare-dev) organization, plus the organization's public -profile. - -GitHub uses a file from this repository for any repository of the organization that does not have -its own file of the same type +Default community health files, issue forms and shared labels for the +[luminare-dev](https://github.com/luminare-dev) repositories, plus the organization profile. +GitHub uses these files for any repository that has no file of its own ([docs](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file)). -A change here therefore changes every repository that relies on the default. - -## What is in here -| File | Effect | Override in a project repository | -|---|---|---| -| [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) | Contributor Covenant 3.0; reports to | its own `CODE_OF_CONDUCT.md` | -| [`CONTRIBUTING.md`](CONTRIBUTING.md) | Conventional Commits, DCO sign-off, issue before a large pull request, no secrets in issues | its own `CONTRIBUTING.md` | -| [`SECURITY.md`](SECURITY.md) | latest minor version supported; private vulnerability reporting first, as fallback; acknowledgement within 14 days, best effort | its own `SECURITY.md` | -| [`SUPPORT.md`](SUPPORT.md) | public issues and Discussions only, best effort | its own `SUPPORT.md` | -| [`ACCESSIBILITY.md`](ACCESSIBILITY.md) | accessibility aims and how to report a barrier, best effort; adds an *Accessibility* tab | its own `ACCESSIBILITY.md` | -| [`.github/ISSUE_TEMPLATE/`](.github/ISSUE_TEMPLATE) | bug report and feature request forms, blank issues off, links to Discussions and the security policy | **any** file in its own `.github/ISSUE_TEMPLATE/` replaces this whole folder | -| [`.github/DISCUSSION_TEMPLATE/`](.github/DISCUSSION_TEMPLATE) | forms for the *Q&A* and *Ideas* discussion categories, with the same redaction checkbox as the issue forms | its own `.github/DISCUSSION_TEMPLATE/` (a repository with its own Discussions) | -| [`.github/PULL_REQUEST_TEMPLATE.md`](.github/PULL_REQUEST_TEMPLATE.md) | checklist: Conventional Commit title, sign-off, tests, no secrets | its own pull request template | -| [`.github/VULNERABILITY_REPORT.yml`](.github/VULNERABILITY_REPORT.yml) | fields of the private vulnerability report form | its own `.github/VULNERABILITY_REPORT.yml` | -| [`profile/README.md`](profile/README.md) | the organization's public profile page | — | -| [`labels.yml`](labels.yml), [`scripts/sync_labels.py`](scripts/sync_labels.py) | shared triage labels and the script that syncs them | — | -| [`rulesets/main.json`](rulesets/main.json) | branch ruleset to import into each repository | — | -| [`SETTINGS.md`](SETTINGS.md) | checklist for the organization, account and repository settings | — | -| [`.github/workflows/`](.github/workflows), [`scripts/`](scripts) | CI for this repository only (not inherited): the template's checks for wording, byline, workflow pins, YAML, Markdown, tests, secrets and the pull request title | — | +## Contents -Licences cannot be inherited: every repository has its own `LICENSE`, and its own `README.md`. -There is deliberately no funding file here, because it would add a Sponsor button to every -repository. +- [CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md), [SUPPORT.md](SUPPORT.md), + [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md), [ACCESSIBILITY.md](ACCESSIBILITY.md) +- `.github/`: issue and discussion forms, the pull request template, the vulnerability report form +- `profile/README.md`: the organization profile +- `labels.yml` and `scripts/sync_labels.py`: shared labels +- `rulesets/main.json`: branch ruleset to import per repository (Settings → Rules → Rulesets → Import) ## Labels -`labels.yml` defines the shared labels: `type: …`, `priority: …`, `status: …` (including -`status: needs-info`), `good first issue`, `help wanted`, and the labels that Dependabot and the -release tooling use. The issue forms set `type: bug`, `type: feature` and `status: triage`, so -those labels must exist in every repository, including this one. - -`scripts/sync_labels.py` needs only Python 3.10 or later, no packages: +`scripts/sync_labels.py` needs Python 3.10+ and no packages. It is a dry run unless `--apply` +is given, and it only deletes labels with `--prune`. ```bash -python scripts/sync_labels.py --repo luminare-dev/.github # dry run: shows what would change -python scripts/sync_labels.py --org luminare-dev # dry run for every repository +python scripts/sync_labels.py --org luminare-dev # dry run GITHUB_TOKEN=... python scripts/sync_labels.py --org luminare-dev --apply ``` -- **Dry run by default.** Nothing is written without `--apply`, and `--apply` needs a token in - `GITHUB_TOKEN` (or the variable named by `--token-env`). Use a fine-grained token limited to the - organization's repositories with the permission *Issues: read and write*. -- **Idempotent.** It creates missing labels and updates colour or description where they differ. - A label listed under `aliases` (for example GitHub's default `bug`) is renamed instead of - duplicated, so existing issues keep it. A second run reports "up to date". -- **Never deletes** unless `--prune` is given; then labels that are not in `labels.yml` are - removed (shown first in the dry run). -- Archived repositories are skipped; forks only with `--include-forks`. -- `--fail-on-changes` makes a dry run exit with 1 when something is out of sync. - -On Windows (PowerShell): `$env:GITHUB_TOKEN = "..."; py scripts\sync_labels.py --org luminare-dev --apply`. - -## Ruleset - -[`rulesets/main.json`](rulesets/main.json) is a repository ruleset in the format GitHub exports -and imports (Settings → Rules → Rulesets → New ruleset → Import a ruleset). It targets the -default branch and requires a pull request (no approval needed, conversations resolved, squash -merge only) and the status checks `ci / lint-test`, `secrets / gitleaks`, `pr / pr-title` and -`DCO`; it blocks force-pushes and deletion, with no bypass. Organization-wide rulesets need GitHub -Team or Enterprise, so it is imported per repository. Read [SETTINGS.md](SETTINGS.md), section 3, -before importing: the check names must match checks that actually run in that repository. +The token needs *Issues: read and write* on the target repositories. ## Development -CI runs on every pull request and push to `main` with the same workflows and checks as the -repositories built from the organization's template (`luminare-dev/oss-template`); they report -`ci / lint-test`, `secrets / gitleaks` and `pr / pr-title`. Run the checks before every pull -request (Python standard library only): - ```bash -python3 -m unittest discover -s tests -v # schema tests skip without the dev tools -python3 scripts/forbidden_words.py # publish gate: wording, names, e-mail addresses, placeholders -python3 scripts/set_byline.py verify # README byline, docs/brand/ and NOTICE agree -python3 scripts/check_workflows.py # SHA pins, permissions, triggers +python3 -m unittest discover -s tests -v +python3 scripts/forbidden_words.py +python3 scripts/set_byline.py verify +python3 scripts/check_workflows.py ``` -With the development tools (`requirements-dev.txt`, hash-pinned) in a virtual environment: - -```bash -python3 -m venv .venv -.venv/bin/pip install --require-hashes --only-binary=:all: -r requirements-dev.txt # Windows: .venv\Scripts\pip ... -.venv/bin/yamllint --strict . -.venv/bin/zizmor --offline --min-severity=low .github/workflows -.venv/bin/python scripts/validate.py # issue and discussion forms, chooser config, ruleset -.venv/bin/python -m unittest discover -s tests -v -``` - -CI also runs markdownlint (`.markdownlint-cli2.jsonc`) and actionlint. - -`scripts/validate.py` downloads the SchemaStore schemas `github-issue-forms`, -`github-issue-config` and `github-discussion` and the ruleset request schema from GitHub's OpenAPI -description once into `.cache/schemas/` (git-ignored). `python3 scripts/forbidden_words.py` runs -without `--template-mode`, because this repository is not a template: it is the publish gate that -CI runs too, and it fails on any placeholder (see [PLACEHOLDERS.md](PLACEHOLDERS.md)). -Reviewed exceptions to the wording check are listed in `.forbidden-words-allow`, each with a -reason. - -### Files copied from the template - -`scripts/forbidden_words.py`, `scripts/set_byline.py`, `scripts/check_workflows.py`, -`scripts/check_pr_title.py`, `.github/workflows/pr-title.yml`, -`.github/workflows/reusable-ci.yml`, `.github/workflows/reusable-gitleaks.yml` and -`.gitleaks.toml` are byte-for-byte copies from `luminare-dev/oss-template`, so this repository -follows the same rules as every other one. `tests/test_template_copies.py` records the source -commit and pins each file's sha256. `.github/workflows/ci.yml` differs from the template only in -its test command. To update, copy the files again from the template, then update the commit and -the hashes in that test. +`scripts/validate.py` checks the forms and the ruleset against their schemas and needs the tools +from `requirements-dev.txt`. Some scripts and workflows are copies from +`luminare-dev/oss-template`; `tests/test_template_copies.py` pins their hashes. ## Licence -Everything in this repository is licensed under the [MIT licence](LICENSE), except: - -- [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md), adapted from the - [Contributor Covenant 3.0](https://www.contributor-covenant.org/version/3/0/) and licensed under - [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/); -- the Luminare name, logo and the files in `docs/brand/`, which are not licensed (see [NOTICE](NOTICE)). +[MIT](LICENSE), except `CODE_OF_CONDUCT.md` (Contributor Covenant 3.0, +[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)) and the Luminare name, logo and +`docs/brand/` files, which are not licensed (see [NOTICE](NOTICE)). diff --git a/SECURITY.md b/SECURITY.md index 96553ad..f6da961 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,63 +1,22 @@ # Security policy -This policy applies to every repository in [luminare-dev](https://github.com/luminare-dev) that -does not have its own `SECURITY.md`. - ## Supported versions -Security fixes go into the **latest minor release** of each project. Older minor and major -versions do not get fixes; please upgrade first and check whether the problem still exists. - -| Version | Security fixes | -|---|---| -| Latest minor release (for example 1.4.x while 1.4 is current) | Yes | -| Any older release | No | -| Unreleased `main` branch | Fixed before the next release | - -Before 1.0.0 the same rule applies: only the latest 0.x minor release is supported. +Only the latest minor release of each project gets security fixes (before 1.0.0, the latest +0.x release). ## Reporting a vulnerability -**Do not open a public issue, discussion or pull request for a security problem.** - -1. **Preferred: GitHub private vulnerability reporting.** Open the affected repository, go to the - **Security** tab and click **Report a vulnerability**. The direct link is - `https://github.com/luminare-dev//security/advisories/new`. Only the maintainers can - see the report. -2. **Fallback: email **, if private reporting is not available for that - repository or you cannot use GitHub. Name the repository in the subject line. - -Please include: - -- the repository and the version, tag or commit you tested; -- what the problem is and what an attacker could do with it; -- the steps to reproduce it, as small as possible; -- whether the issue is already public or known to others. - -Redact real secrets, IP addresses, hostnames and personal data in your report. Use placeholders -instead; the maintainers will ask if they need more. - -## What happens next - -- **Acknowledgement:** best effort within 14 days. -- **Assessment and fix:** the maintainers confirm the problem, prepare a fix in a private fork - where possible and agree on a disclosure date with you. A typical target is 90 days or less - after the report. -- **Disclosure:** a GitHub security advisory is published with the fixed release, and a CVE is - requested through GitHub when appropriate. You are credited in the advisory unless you prefer - not to be. - -There is no bug bounty programme, and reports are not rewarded. - -## Out of scope +Please do not open a public issue. Use **Report a vulnerability** in the repository's +**Security** tab (`https://github.com/luminare-dev//security/advisories/new`). If that +is not possible, email with the repository name in the subject. -- Vulnerabilities in third-party software that a project only installs, configures or monitors. - Please report those to the upstream project. -- Findings that need an already compromised host, or physical access, without showing a weakness - in the project itself. -- Automated scanner output without a demonstrated impact. +Include the version or commit, what the problem is, and steps to reproduce. Redact real secrets +and personal data. -## A secret was committed by mistake +I aim to reply within 14 days (best effort), fix the issue, and publish an advisory (with a CVE +where appropriate) with the release, crediting you unless you prefer otherwise. There is no bug +bounty. -If you find a credential, token or key in any repository or its history, report it privately in -the same way. Do not copy it into a public place. +Out of scope: bugs in third-party software a project only installs or monitors (report them +upstream), and scanner output without a demonstrated impact. diff --git a/SETTINGS.md b/SETTINGS.md deleted file mode 100644 index 89f3e10..0000000 --- a/SETTINGS.md +++ /dev/null @@ -1,211 +0,0 @@ -# Settings checklist - -Manual settings for the organization [luminare-dev](https://github.com/luminare-dev), the -maintainer's personal account and every public repository. None of this can be stored in a file -that GitHub reads, so it is a checklist. Work through it top to bottom and tick each box. - -The links to GitHub's documentation were checked on 2026-10-06. Items marked ⚠ need a check in -the GitHub interface, because the documentation does not settle them. - -## 0. Before the first push of this repository - -- [ ] The role addresses receive mail (section 5): `oss@luminare.tech`, `conduct@luminare.tech`, - `security@luminare.tech`, all aliases of the one `hello@luminare.tech` inbox. The code of - conduct, security policy and profile name them. -- [ ] Every placeholder in [PLACEHOLDERS.md](PLACEHOLDERS.md) is filled in. -- [ ] `https://luminare.tech` answers; the organization profile links to it. -- [ ] Sections 1 and 2 are done (at least two-factor authentication and the Actions policy). -- [ ] Create the **public** repository `.github` in `luminare-dev` without a generated README, - licence or `.gitignore`, then push this repository. The default branch must be `main`, - because the profile header uses `raw.githubusercontent.com/luminare-dev/.github/main/...`. -- [ ] Section 3 for this repository, then the acceptance tests in section 4. - -## 1. Personal account - -- [ ] **Two-factor authentication:** a passkey as the main method plus an authenticator app as a - backup. No SMS. ([docs](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa)) -- [ ] **Recovery codes** downloaded and kept offline (printed, or in an offline password - manager), never on a server or in a repository. -- [ ] **Email privacy:** Settings → Emails → *Keep my email addresses private* and *Block command - line pushes that expose my email*. Commits use the GitHub `noreply` address - (`+@users.noreply.github.com`). -- [ ] **SSH commit signing** (Git 2.34 or later). On your own computer: - - ```bash - ssh-keygen -t ed25519 -C "git commit signing" -f ~/.ssh/id_ed25519_signing - git config --global gpg.format ssh - git config --global user.signingkey ~/.ssh/id_ed25519_signing.pub - git config --global commit.gpgsign true - git config --global tag.gpgsign true - ``` - - Then GitHub → Settings → SSH and GPG keys → **New SSH key** → key type **Signing Key**, and - paste the `.pub` file (or `gh ssh-key add ~/.ssh/id_ed25519_signing.pub --type signing`). - A key used for both login and signing must be added twice, once per type. Check that the - next pushed commit shows **Verified**. On a shared or server machine, set these options per - repository (`git config` without `--global`) instead. - ([docs](https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key)) -- [ ] Optional: **vigilant mode** (Settings → SSH and GPG keys) marks unsigned commits as - *Unverified*. -- [ ] **Push protection for yourself** is on (Settings → Code security). It is on by default and - blocks secrets in pushes to any public repository. -- [ ] No GitHub Sponsors profile. - -## 2. Organization `luminare-dev` - -**Plan:** Free. Organization-wide rulesets need GitHub Team or Enterprise -([docs](https://docs.github.com/en/organizations/managing-organization-settings/creating-rulesets-for-repositories-in-your-organization)), -so the branch ruleset is imported per repository (section 3). - -### Profile (Settings → General) - -- [ ] Display name **Luminare Development**, URL `https://luminare.tech`. Leave the public email - empty, or set `oss@luminare.tech` once it receives mail. -- [ ] Optional: verify the domain `luminare.tech` (Settings → Verified and approved domains; one - DNS TXT record). The profile then shows a *Verified* badge. - -### People and security - -- [ ] Owner role for the maintainer's personal account. A single owner is a single point of - failure: keep that account's recovery codes safe. -- [ ] Authentication security: **Require two-factor authentication** and **Only allow secure - two-factor methods**. - ([docs](https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization)) -- [ ] Member privileges: base permission **Read**; members cannot create, delete, transfer or - change the visibility of repositories; forking of private repositories off. - -### Actions (Settings → Actions → General) - -[Documentation](https://docs.github.com/en/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization) - -- [ ] Policy **Allow luminare-dev, and select non-luminare-dev, actions and reusable workflows**, - with **Allow actions created by GitHub** ticked (it covers `actions/*` and `github/*`) and - the third-party actions of the template workflows listed explicitly: - `googleapis/release-please-action@*, ossf/scorecard-action@*, DavidAnson/markdownlint-cli2-action@*`. - When a template workflow adds a third-party action, add it here. -- [ ] **Require actions to be pinned to a full-length commit SHA.** -- [ ] Fork pull request workflows: **Require approval for all external contributors**. -- [ ] Workflow permissions: **Read repository contents and packages permissions**, and tick - **Allow GitHub Actions to create and approve pull requests** (release-please opens its - release pull request with `GITHUB_TOKEN`; each workflow asks for write permissions per - job). New organizations do not allow this by default, and new repositories inherit the - organization's setting. - -### Code security (Settings → Advanced Security → Configurations) - -- [ ] Apply one security configuration to all repositories, and as the default for new ones: - Dependabot alerts and security updates, secret scanning, push protection, private - vulnerability reporting. Secret scanning and push protection are free for public - repositories, not for private ones - ([docs](https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security)); - private repositories rely on the gitleaks check in CI. - -### Community - -- [ ] **Discussions** for the organization, with `.github` as the source repository, categories - *Announcements*, *Q&A*, *Ideas* and *Show and tell*. The issue chooser and `SUPPORT.md` - link to `https://github.com/orgs/luminare-dev/discussions`. The forms in - `.github/DISCUSSION_TEMPLATE/` are named after the category slugs (`q-a.yml`, `ideas.yml`); - keep the default category names, or rename the files to match. -- [ ] Install the **DCO** app (`https://github.com/apps/dco`, app ID 1861) for all repositories. - Its check is called `DCO`. -- [ ] No Sponsors profile for the organization, and no `FUNDING.yml` in this repository: - such a file would add a Sponsor button to every repository. -- [ ] Default branch name for new repositories: `main`. - -## 3. Every public repository - -### General - -- [ ] `LICENSE` with an SPDX licence, `NOTICE`, and a README built from the template. -- [ ] Description, website (the project page), topics. Platform names belong in the description - and topics, never in the repository name. -- [ ] Social preview: upload `docs/brand/social-preview-1280x640.png` (Settings → General). -- [ ] Features: Issues on; Wiki off; Projects off unless used; **Sponsorships unticked**. - Discussions: the organization's Discussions by default; a repository's own Discussions - only for projects that need their own space (the Ansible collections and the observability - pack). -- [ ] Pull requests: **Allow squash merging** only, default message **Pull request title and - commit details** (keeps the `Signed-off-by` lines), *Always suggest updating pull request - branches* and *Automatically delete head branches* on. -- [ ] Releases: turn on **immutable releases** (tags and assets cannot change after - publication). The template's release workflow creates a draft release, attaches every file - and publishes last, which is the order immutable releases need. -- [ ] Release pull requests: **close and reopen** each one once before merging. Pull requests - opened with `GITHUB_TOKEN` start no workflows, so the required checks would never report - (template `PUBLISHING.md`, part C). - -### Security (Settings → Advanced Security) - -- [ ] Private vulnerability reporting **on**. - ([docs](https://docs.github.com/en/code-security/how-tos/report-and-fix-vulnerabilities/configure-vulnerability-reporting/configure-for-a-repository)) -- [ ] Dependabot alerts and security updates **on**. -- [ ] Secret scanning and **push protection on**. -- [ ] Code scanning default setup on, where the repository contains a supported language. - -### Branch ruleset (Settings → Rules → Rulesets → New ruleset → Import a ruleset) - -- [ ] Import [`rulesets/main.json`](rulesets/main.json). It protects the default branch: pull - request required (0 approvals, so a single maintainer can merge; conversations resolved; - squash only), required status checks, no force-push, no deletion, no bypass. -- [ ] Before importing, make sure each required check name matches a check that already ran on - a pull request in that repository: `ci / lint-test`, `secrets / gitleaks` and - `pr / pr-title` (GitHub Actions, app ID 15368) and `DCO` (app ID 1861). Reusable workflows - report as ` / `; renaming the caller jobs in `ci.yml` or - `pr-title.yml` changes these names. Edit the names in the ruleset form if a repository's - CI jobs are named differently. A required check that never reports blocks every merge, so - in a repository without these workflows, remove the *Require status checks to pass* rule - in the form and add it back once the checks have run. - -### Labels and triage - -- [ ] Run `python scripts/sync_labels.py --repo luminare-dev/` (dry run), then again with - `--apply` (README.md, "Labels"). -- [ ] Watch the repository (Custom: Issues, Pull requests, Discussions, Security alerts) with - email notifications on. Target: a first reply within 7 days. -- [ ] Look at the Actions tab once a month: GitHub disables scheduled workflows in public - repositories after 60 days without activity. - -## 4. Acceptance tests (manual) - -Run these once after the first push, in the organization: - -1. **Defaults apply.** Create an empty public test repository (README only) in `luminare-dev`. - Insights → Community standards lists the code of conduct, contributing guide, security policy, - support file, issue templates and pull request template from `.github`, and the repository - shows an *Accessibility* tab. Licence and README are per repository by design. -2. **Issue chooser.** *New issue* in the test repository shows *Bug report*, *Feature request* - and the two contact links. A non-member sees no blank issue. -3. **No Sponsor button** on any repository. -4. **Push protection.** On a scratch branch of the test repository, commit a test token and - push: the push must be rejected by push protection. Do not bypass the block. Use a - fine-grained personal access token with no repository access, no permissions and a 1-day - expiry, and revoke it right after the test. A random made-up string may not be detected, - because GitHub tokens contain a checksum. Afterwards reset the scratch branch. -5. **Discussion forms.** *New discussion* → *Q&A* and *Ideas* in the organization's Discussions - show the fields from `.github/DISCUSSION_TEMPLATE/`, including the redaction checkbox. -6. **Private reporting.** *Security → Report a vulnerability* in the test repository (with private - reporting on) shows the fields from `.github/VULNERABILITY_REPORT.yml`. -7. **DCO.** A test pull request with a commit without `-s` fails the `DCO` check; after - `git commit --amend -s` and a force-push to the branch, the check passes. -8. **Ruleset.** A direct push and a force-push to `main` are both rejected. -9. **Profile.** `https://github.com/luminare-dev` shows the header in light and dark mode, the - project table and working links. - -Delete the test repository after the last test. - -## 5. Role addresses - -All addresses deliver into **one inbox**, `hello@luminare.tech`, which only the maintainer reads. -The role addresses are aliases of it, so a report never depends on a second mailbox. They are -created on the `luminare.tech` mail server by the maintainer, then tested by sending a message -from an outside address to each one. - -| Address | Type | Delivers to | Used in | -|---|---|---|---| -| `hello@luminare.tech` | mailbox | the maintainer | general contact on the studio website | -| `oss@luminare.tech` | alias | `hello@luminare.tech` | profile, `SUPPORT.md`, `ACCESSIBILITY.md` | -| `conduct@luminare.tech` | alias | `hello@luminare.tech` | `CODE_OF_CONDUCT.md`, `CONTRIBUTING.md`, `SUPPORT.md` | -| `security@luminare.tech` | alias | `hello@luminare.tech` | `SECURITY.md` (fallback) | - -Mail to these addresses is never answered with private support; see `SUPPORT.md`. diff --git a/SUPPORT.md b/SUPPORT.md index 6bd0d5a..d972cde 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -1,44 +1,15 @@ # Getting help -This applies to every repository in [luminare-dev](https://github.com/luminare-dev) that does not -have its own `SUPPORT.md`. +Help happens in public and is best effort: -## Public channels only +- Questions and ideas: [Discussions](https://github.com/orgs/luminare-dev/discussions) +- Bugs and feature requests: the repository's **Issues** tab +- Security problems: never in public, see [SECURITY.md](https://github.com/luminare-dev/.github/blob/main/SECURITY.md) +- Code of Conduct problems: -Help happens **in public**, so that the next person with the same question finds the answer: +Before asking, check the README and `docs/`, search existing issues, try the latest release, and +include versions and the exact error. Remove secrets, IP addresses, hostnames and user data from +anything you paste. -| You want to… | Go to | -|---|---| -| ask a question, discuss an idea or show what you built | [Discussions](https://github.com/orgs/luminare-dev/discussions) | -| report a bug that you can reproduce | the repository's **Issues** tab, form "Bug report" | -| propose a feature | the repository's **Issues** tab, form "Feature request" | -| report a security problem | **never in public**: follow [SECURITY.md](https://github.com/luminare-dev/.github/blob/main/SECURITY.md) | -| report a Code of Conduct problem | | - -Answers are **best effort**. The maintainers aim for a first reply within 7 days, but there is no -guaranteed response time. - -## What is not provided - -- **No private support.** Questions sent by direct message, chat or email are answered with a - pointer to Discussions or Issues. -- **No installs, configuration or fixes on anyone's server, network or account.** Nobody will log - in to your systems, and you should never share credentials with anyone who offers to. -- **No support for modified versions** or forks, unless the problem also happens with the - unmodified project. - -## Before you ask - -1. Read the repository's `README.md` and its `docs/` folder, especially the troubleshooting page - if there is one. -2. Search the open and closed issues and the discussions. -3. Check that you use the latest release. -4. Collect the versions you use (project, operating system, and the tools named in the README) and - the exact error message. -5. **Remove all secrets, tokens, licence keys, IP addresses, hostnames and player or user data** - from anything you paste. - -## General contact - -For things that are not support requests, such as questions about licensing or a project in -general, write to . +There is no private support and no help on anyone's own servers. Other questions: +. diff --git a/tests/test_repo_files.py b/tests/test_repo_files.py index 7bdd1f9..5132152 100644 --- a/tests/test_repo_files.py +++ b/tests/test_repo_files.py @@ -30,17 +30,13 @@ def read(rel: str) -> str: class TestLayout(unittest.TestCase): def test_files_sit_where_github_reads_them(self): - # docs.github.com "Creating a default community health file" (checked 2026-10-07): - # issue templates and config in .github/ISSUE_TEMPLATE; discussion category forms in - # .github/DISCUSSION_TEMPLATE, named after the category slug; VULNERABILITY_REPORT.yml and - # FUNDING.yml only in .github/; the others in the root, .github/ or docs/. # rule-text - # The organization profile is profile/README.md in the public .github repository. + # Paths GitHub reads default community health files and the org profile from. for rel in ("CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "SECURITY.md", "SUPPORT.md", "ACCESSIBILITY.md", ".github/DISCUSSION_TEMPLATE/q-a.yml", ".github/DISCUSSION_TEMPLATE/ideas.yml", ".github/ISSUE_TEMPLATE/bug_report.yml", ".github/ISSUE_TEMPLATE/feature_request.yml", ".github/ISSUE_TEMPLATE/config.yml", ".github/PULL_REQUEST_TEMPLATE.md", ".github/VULNERABILITY_REPORT.yml", "profile/README.md", "LICENSE", "NOTICE", - "PLACEHOLDERS.md", "SETTINGS.md", "labels.yml", "rulesets/main.json", + "labels.yml", "rulesets/main.json", "docs/brand/readme-header-dark.svg", "docs/brand/readme-header-light.svg", "docs/brand/social-preview-1280x640.png", "docs/brand/KIT_VERSION"): self.assertTrue((ROOT / rel).is_file(), rel) @@ -128,15 +124,8 @@ def test_repository_passes_in_template_mode(self): self.assertEqual(report.errors, []) self.assertEqual(report.warnings, []) # also: no stale .forbidden-words-allow entry - def test_publish_gate_finds_only_the_listed_placeholders(self): - # Before the push the only findings are the open placeholders; once they are filled in, - # the publish gate (the CI step outside template mode) is clean. - listed = set(forbidden_words.PLACEHOLDER_RE.findall(read("PLACEHOLDERS.md"))) - self.assertTrue(listed) - for error in self.run_check(ROOT, template_mode=False).errors: - m = re.search(r"unfilled placeholder \{\{(\w+)\}\}", error) - self.assertIsNotNone(m, error) - self.assertIn(m.group(1), listed, error) + def test_publish_gate_is_clean(self): + self.assertEqual(self.run_check(ROOT, template_mode=False).errors, []) def test_checker_catches_problems(self): # Built from pieces so that this test file itself passes the repository-wide check. @@ -184,8 +173,7 @@ def test_brand_files_are_the_studio_variant(self): self.assertIn("variant: studio", read("docs/brand/KIT_VERSION")) def test_profile_header_block(self): - # The header sits between oss-template's markers (07's project-page sync drops the block). - # The org profile has no byline (brand-repos repos.yaml: byline: false). + # The org profile has a header block but no byline. text = read("profile/README.md") self.assertTrue(text.startswith("") + len("")]