aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Govorov <me@govorov.online>2026-07-24 00:15:36 +0100
committerNikolay Govorov <me@govorov.online>2026-07-24 00:15:36 +0100
commitacb812baa585300d062918599ed97068464488cc (patch)
treeba2b98ed7f55c7753b9830bdd2e3d35b431a22ae
parent22410a5dae5ff53b54d1666db5c6009229fbaaa5 (diff)
downloadtar
tar.gz
tar.bz2
tar.lz
tar.xz
tar.zst
zip
Add script for check licenses layout
Diffstat
-rw-r--r--README.md29+8 −21
-rwxr-xr-xtasks/licenses9+9 −0
2 files changed, 17 insertions, 21 deletions
diff --git a/README.md b/README.md
index c99689b..8c8706a 100644
--- a/README.md
+++ b/README.md
@@ -8,29 +8,11 @@ Projects include `tasks/` with
By default, tasks are fetched directly from this public repository over HTTPS:
```console
-mise run --no-cache signoff
+mise run signoff
+mise run licenses
```
-`--no-cache` makes a mutable branch such as `main` resolve to its latest commit.
-
-To test a dirty sibling checkout of this repository, use the `infra-local`
-environment provided by each project:
-
-```console
-mise -E infra-local run --no-cache signoff
-```
-
-For several commands, keep the environment selected in the current shell:
-
-```console
-export MISE_ENV=infra-local
-mise run --no-cache signoff
-# Run other tasks against the local infra checkout.
-unset MISE_ENV
-```
-
-The local environment resolves `../infra/tasks` relative to the project root;
-the default environment always resolves the public HTTPS repository.
+Consuming projects pin this repository by commit SHA.
## Sign-off policy
@@ -46,6 +28,11 @@ the default environment always resolves the public HTTPS repository.
Approved emails are maintained centrally so a pull request in a consuming
repository cannot grant itself an exemption.
+## Licensing policy
+
+`tasks/licenses` runs a pinned REUSE version and verifies the repository's
+licensing metadata.
+
## License
Executable tasks and their configuration are licensed under 0BSD.
diff --git a/tasks/licenses b/tasks/licenses
new file mode 100755
--- /dev/null
+++ b/tasks/licenses
@@ -0,0 +1,9 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: 2026 Nikolay Govorov
+# SPDX-License-Identifier: 0BSD
+#MISE description="Verify repository licensing metadata"
+#MISE tools={"pipx:reuse"="6.2.0"}
+
+set -eu
+
+reuse lint