slsa-linkml 0.11.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- slsa_linkml-0.11.6/.copier-answers.yml +16 -0
- slsa_linkml-0.11.6/.editorconfig +18 -0
- slsa_linkml-0.11.6/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- slsa_linkml-0.11.6/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- slsa_linkml-0.11.6/.github/PULL_REQUEST_TEMPLATE/knowledge-sync.md +6 -0
- slsa_linkml-0.11.6/.github/dependabot.yml +57 -0
- slsa_linkml-0.11.6/.github/pull_request_template.md +23 -0
- slsa_linkml-0.11.6/.github/scripts/changelog-release.mjs +113 -0
- slsa_linkml-0.11.6/.github/scripts/report-issue.sh +35 -0
- slsa_linkml-0.11.6/.github/workflows/codeql.yml +53 -0
- slsa_linkml-0.11.6/.github/workflows/knowledge-librarian.yaml +769 -0
- slsa_linkml-0.11.6/.github/workflows/knowledge-registrar.yaml +682 -0
- slsa_linkml-0.11.6/.github/workflows/knowledge-release.yaml +661 -0
- slsa_linkml-0.11.6/.github/workflows/knowledge-sync.yaml +288 -0
- slsa_linkml-0.11.6/.github/workflows/knowledge-website.yaml +189 -0
- slsa_linkml-0.11.6/.github/workflows/lint-and-docs.yaml +129 -0
- slsa_linkml-0.11.6/.github/workflows/main.yaml +78 -0
- slsa_linkml-0.11.6/.github/workflows/pypi-publish.yaml +125 -0
- slsa_linkml-0.11.6/.github/workflows/scorecard.yml +53 -0
- slsa_linkml-0.11.6/.github/workflows/semantic-release.yml +212 -0
- slsa_linkml-0.11.6/.github/workflows/upstream-watch.yaml +49 -0
- slsa_linkml-0.11.6/.gitignore +150 -0
- slsa_linkml-0.11.6/.linkml/generators.yaml +63 -0
- slsa_linkml-0.11.6/.linkmllint.yaml +10 -0
- slsa_linkml-0.11.6/.lokf/.gitattributes +7 -0
- slsa_linkml-0.11.6/.lokf/.gitignore +37 -0
- slsa_linkml-0.11.6/.lokf/README.md +75 -0
- slsa_linkml-0.11.6/.lokf/justfile +76 -0
- slsa_linkml-0.11.6/.lokf/knowledge/datasets/generated-artefacts.md +63 -0
- slsa_linkml-0.11.6/.lokf/knowledge/datasets/index.md +6 -0
- slsa_linkml-0.11.6/.lokf/knowledge/datasets/slsa-linkml-schema.md +136 -0
- slsa_linkml-0.11.6/.lokf/knowledge/datasets/slsa-spec-copy.md +44 -0
- slsa_linkml-0.11.6/.lokf/knowledge/datasets/test-data.md +59 -0
- slsa_linkml-0.11.6/.lokf/knowledge/explanations/index.md +3 -0
- slsa_linkml-0.11.6/.lokf/knowledge/explanations/schema-subsets.md +35 -0
- slsa_linkml-0.11.6/.lokf/knowledge/glossary/index.md +4 -0
- slsa_linkml-0.11.6/.lokf/knowledge/glossary/slsa-level.md +47 -0
- slsa_linkml-0.11.6/.lokf/knowledge/glossary/slsa-track.md +28 -0
- slsa_linkml-0.11.6/.lokf/knowledge/index.md +60 -0
- slsa_linkml-0.11.6/.lokf/knowledge/log.md +150 -0
- slsa_linkml-0.11.6/.lokf/knowledge/org/cncf-tag-security.md +24 -0
- slsa_linkml-0.11.6/.lokf/knowledge/org/index.md +4 -0
- slsa_linkml-0.11.6/.lokf/knowledge/org/slsa-project.md +24 -0
- slsa_linkml-0.11.6/.lokf/knowledge/playbooks/index.md +5 -0
- slsa_linkml-0.11.6/.lokf/knowledge/playbooks/knowledge-sources.md +78 -0
- slsa_linkml-0.11.6/.lokf/knowledge/playbooks/regenerate-and-test.md +58 -0
- slsa_linkml-0.11.6/.lokf/knowledge/playbooks/release.md +51 -0
- slsa_linkml-0.11.6/.lokf/knowledge/policies/index.md +3 -0
- slsa_linkml-0.11.6/.lokf/knowledge/policies/license-and-attribution.md +51 -0
- slsa_linkml-0.11.6/.lokf/knowledge/references/in-toto-attestation.md +76 -0
- slsa_linkml-0.11.6/.lokf/knowledge/references/index.md +7 -0
- slsa_linkml-0.11.6/.lokf/knowledge/references/openssf-supply-chain.md +26 -0
- slsa_linkml-0.11.6/.lokf/knowledge/references/secure-software-factory.md +43 -0
- slsa_linkml-0.11.6/.lokf/knowledge/references/slsa-adoption-study.md +39 -0
- slsa_linkml-0.11.6/.lokf/knowledge/references/slsa-specification.md +40 -0
- slsa_linkml-0.11.6/.lokf/knowledge/services/documentation-site.md +61 -0
- slsa_linkml-0.11.6/.lokf/knowledge/services/index.md +3 -0
- slsa_linkml-0.11.6/.lokf/m365/knowledge-m365.sh +238 -0
- slsa_linkml-0.11.6/.lokf/m365/ktl-docent-m365.md +112 -0
- slsa_linkml-0.11.6/.lokf/pyproject.toml +21 -0
- slsa_linkml-0.11.6/.lokf/queries.http +54 -0
- slsa_linkml-0.11.6/.lokf/schema/lokf.yaml +2226 -0
- slsa_linkml-0.11.6/.lokf/schema/slsa.yaml +1867 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-apply.py +1766 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-apply.sh +93 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-conventions.py +1015 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-conventions.sh +505 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-feedback.sh +219 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-librarian.sh +550 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-preflight.sh +557 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-provenance.sh +552 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-report.sh +2151 -0
- slsa_linkml-0.11.6/.lokf/scripts/knowledge-sync.sh +1204 -0
- slsa_linkml-0.11.6/.lokf/uv.lock +2548 -0
- slsa_linkml-0.11.6/.markdownlint-cli2.jsonc +65 -0
- slsa_linkml-0.11.6/.pre-commit-config.yaml +48 -0
- slsa_linkml-0.11.6/.release/package-lock.json +5956 -0
- slsa_linkml-0.11.6/.release/package.json +12 -0
- slsa_linkml-0.11.6/.releaserc.json +40 -0
- slsa_linkml-0.11.6/.yamllint.yaml +19 -0
- slsa_linkml-0.11.6/AI_COVENANT.md +113 -0
- slsa_linkml-0.11.6/CHANGELOG.md +214 -0
- slsa_linkml-0.11.6/CODE_OF_CONDUCT.md +76 -0
- slsa_linkml-0.11.6/CONTRIBUTING.md +81 -0
- slsa_linkml-0.11.6/LICENSE +201 -0
- slsa_linkml-0.11.6/NOTICE +104 -0
- slsa_linkml-0.11.6/PKG-INFO +96 -0
- slsa_linkml-0.11.6/README.md +84 -0
- slsa_linkml-0.11.6/SECURITY.md +39 -0
- slsa_linkml-0.11.6/config.public.mk +29 -0
- slsa_linkml-0.11.6/docs/Secure_Software_Factory_Whitepaper.pdf +0 -0
- slsa_linkml-0.11.6/docs/about.md +49 -0
- slsa_linkml-0.11.6/docs/elements/.gitkeep +0 -0
- slsa_linkml-0.11.6/docs/index.md +35 -0
- slsa_linkml-0.11.6/docs/schema/slsa.yaml +4807 -0
- slsa_linkml-0.11.6/docs/schema/slsa_merged.yaml +3964 -0
- slsa_linkml-0.11.6/docs/templates-linkml/README.md +7 -0
- slsa_linkml-0.11.6/examples/README.md +9 -0
- slsa_linkml-0.11.6/justfile +295 -0
- slsa_linkml-0.11.6/llms.txt +23 -0
- slsa_linkml-0.11.6/lychee.toml +76 -0
- slsa_linkml-0.11.6/project/README.md +6 -0
- slsa_linkml-0.11.6/project/excel/slsa.xlsx +0 -0
- slsa_linkml-0.11.6/project/graphql/slsa.graphql +441 -0
- slsa_linkml-0.11.6/project/java/InTotoAdditionalDigest.java +23 -0
- slsa_linkml-0.11.6/project/java/InTotoAnnotation.java +23 -0
- slsa_linkml-0.11.6/project/java/InTotoDigestSet.java +46 -0
- slsa_linkml-0.11.6/project/java/InTotoPredicate.java +22 -0
- slsa_linkml-0.11.6/project/java/InTotoResourceDescriptor.java +28 -0
- slsa_linkml-0.11.6/project/java/InTotoStatement.java +25 -0
- slsa_linkml-0.11.6/project/java/InTotoStatementSubject.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaAdoptionMetadata.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaBranch.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildDefinition.java +28 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildEnvironmentAttestation.java +25 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildImage.java +25 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildImageProducer.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildMetadata.java +24 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildParameter.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildPlatform.java +26 -0
- slsa_linkml-0.11.6/project/java/SlsaBuildProvenance.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaComponentVersion.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaConsumer.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaControlPlane.java +22 -0
- slsa_linkml-0.11.6/project/java/SlsaDependencyInventory.java +24 -0
- slsa_linkml-0.11.6/project/java/SlsaDependencyLevelCount.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaDocument.java +34 -0
- slsa_linkml-0.11.6/project/java/SlsaInfrastructureProvider.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaMeasurement.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaNamedReference.java +26 -0
- slsa_linkml-0.11.6/project/java/SlsaPackage.java +27 -0
- slsa_linkml-0.11.6/project/java/SlsaPackageRegistry.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaParty.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaPredicate.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaProducer.java +22 -0
- slsa_linkml-0.11.6/project/java/SlsaRunDetails.java +24 -0
- slsa_linkml-0.11.6/project/java/SlsaSourceControlSystem.java +22 -0
- slsa_linkml-0.11.6/project/java/SlsaSourceProvenance.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaSourceRepository.java +23 -0
- slsa_linkml-0.11.6/project/java/SlsaSourceRevision.java +28 -0
- slsa_linkml-0.11.6/project/java/SlsaStatement.java +24 -0
- slsa_linkml-0.11.6/project/java/SlsaTag.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaVerificationSummary.java +31 -0
- slsa_linkml-0.11.6/project/java/SlsaVerificationSummaryInputAttestation.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaVerificationSummaryPolicy.java +21 -0
- slsa_linkml-0.11.6/project/java/SlsaVerifier.java +23 -0
- slsa_linkml-0.11.6/project/jsonld/slsa.context.jsonld +632 -0
- slsa_linkml-0.11.6/project/jsonld/slsa.jsonld +6199 -0
- slsa_linkml-0.11.6/project/jsonschema/slsa.schema.json +2705 -0
- slsa_linkml-0.11.6/project/linkml/slsa.merged.linkml.yaml +4825 -0
- slsa_linkml-0.11.6/project/owl/slsa.owl.ttl +3064 -0
- slsa_linkml-0.11.6/project/prefixmap/slsa.yaml +35 -0
- slsa_linkml-0.11.6/project/protobuf/slsa.proto +592 -0
- slsa_linkml-0.11.6/project/rdf/slsa.ttl +3154 -0
- slsa_linkml-0.11.6/project/shacl/slsa.shacl.ttl +1636 -0
- slsa_linkml-0.11.6/project/shex/slsa.shex +517 -0
- slsa_linkml-0.11.6/project/sqlschema/slsa.sql +831 -0
- slsa_linkml-0.11.6/project/typescript/slsa.ts +729 -0
- slsa_linkml-0.11.6/project.justfile +51 -0
- slsa_linkml-0.11.6/pyproject.toml +93 -0
- slsa_linkml-0.11.6/scripts/check_upstream_release.py +133 -0
- slsa_linkml-0.11.6/src/README.md +4 -0
- slsa_linkml-0.11.6/src/slsa/__init__.py +10 -0
- slsa_linkml-0.11.6/src/slsa/_version.py +8 -0
- slsa_linkml-0.11.6/src/slsa/datamodel/__init__.py +7 -0
- slsa_linkml-0.11.6/src/slsa/datamodel/slsa.py +2274 -0
- slsa_linkml-0.11.6/src/slsa/datamodel/slsa_pydantic.py +1996 -0
- slsa_linkml-0.11.6/src/slsa/schema/README.md +18 -0
- slsa_linkml-0.11.6/src/slsa/schema/in_toto/in_toto_core.yaml +604 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa.yaml +134 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_adoption.yaml +139 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_build.yaml +276 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_build_environment.yaml +153 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_core.yaml +424 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_dependency.yaml +82 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_source.yaml +275 -0
- slsa_linkml-0.11.6/src/slsa/schema/slsa_verification.yaml +321 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/about.md +137 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/assessing-build-platforms.md +239 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/assessing-source-systems.md +205 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/attestation-model.md +162 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/build-env-track-basics.md +440 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/build-provenance.md +603 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/build-requirements.md +339 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/build-track-basics.md +206 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/dependency-track.md +160 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/distributing-provenance.md +170 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/faq.md +185 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/future-directions.md +56 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/build-env-model.svg +38 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/build-model.svg +1 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/provenance-model.svg +1 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/source-control-system-components.svg +1 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/supply-chain-model.svg +28 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/supply-chain-threats-build-verification.svg +88 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/supply-chain-threats.svg +81 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/images/verification-model.svg +1 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/index.md +38 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/onepage.md +13 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/principles.md +142 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/provenance.md +23 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/requirements.md +11 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/schema/provenance.cue +48 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/schema/provenance.proto +50 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/source-example-controls.md +272 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/source-requirements.md +638 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/terminology.md +343 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/threats-overview.md +119 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/threats.md +1116 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/tracks.md +79 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/use-cases.md +129 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/verification_summary.md +432 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/verified-properties.md +37 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/verifying-artifacts.md +302 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/verifying-source.md +169 -0
- slsa_linkml-0.11.6/src/slsa/schema/spec/whats-new.md +25 -0
- slsa_linkml-0.11.6/tests/__init__.py +1 -0
- slsa_linkml-0.11.6/tests/data/README.md +14 -0
- slsa_linkml-0.11.6/tests/data/invalid/.gitkeep +0 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-additional-named-algorithm.yaml +5 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-additional-uppercase-algorithm.yaml +4 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-empty.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-null-digest.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-short-blake2b.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-short-dir-hash.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-uppercase-sha256.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoDigestSet-wrong-length-sha384.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoResourceDescriptor-empty-content.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoResourceDescriptor-no-uri-digest-or-content.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoResourceDescriptor-null-fields.yaml +4 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoStatement-empty-subject.yaml +4 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoStatement-missing-subject.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoStatement-predicate-kind-mismatch.yaml +17 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoStatement-provenance-missing-run-details.yaml +13 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoStatement-subject-without-digest.yaml +5 -0
- slsa_linkml-0.11.6/tests/data/invalid/InTotoStatement-wrong-statement-type.yaml +6 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaBranch-missing-name.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaBuildPlatform-missing-id.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaBuildPlatform-unknown-level.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaBuildProvenance-empty-external-parameters.yaml +8 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaBuildProvenance-missing-external-parameters.yaml +6 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaBuildProvenance-offset-start-time.yaml +12 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaDependencyInventory-missing-artifact.yaml +4 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaSourceRevision-missing-id.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-bad-slsa-version.yaml +10 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-empty-levels.yaml +8 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-input-attestation-without-digest.yaml +11 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-lookalike-result.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-missing-levels.yaml +7 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-missing-resource-uri.yaml +8 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-negative-dependency-count.yaml +12 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-policy-without-uri.yaml +10 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-unknown-result.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-unprefixed-org-property.yaml +11 -0
- slsa_linkml-0.11.6/tests/data/invalid/SlsaVerificationSummary-uppercase-verifier-host.yaml +10 -0
- slsa_linkml-0.11.6/tests/data/problem/invalid/.gitkeep +0 -0
- slsa_linkml-0.11.6/tests/data/problem/valid/.gitkeep +0 -0
- slsa_linkml-0.11.6/tests/data/valid/.gitkeep +0 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoDigestSet-001.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoDigestSet-002.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoResourceDescriptor-001.yaml +7 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoResourceDescriptor-content.yaml +5 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoStatement-build-environment.yaml +19 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoStatement-source-provenance.yaml +14 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoStatement-source-vsa-svn.yaml +21 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoStatement-source-vsa.yaml +27 -0
- slsa_linkml-0.11.6/tests/data/valid/InTotoStatement-verification-summary.yaml +33 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaAdoptionMetadata-001.yaml +7 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaBranch-001.yaml +5 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaBuildImage-001.yaml +14 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaBuildImageProducer-001.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaBuildPlatform-001.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaBuildProvenance-001.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaConsumer-001.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaControlPlane-001.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaDependencyInventory-001.yaml +13 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaDocument-001.yaml +112 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaInfrastructureProvider-001.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaPackage-001.yaml +11 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaPackageRegistry-001.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaProducer-001.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaSourceControlSystem-001.yaml +2 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaSourceRepository-001.yaml +3 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaSourceRevision-001.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaStatement-build-provenance.yaml +45 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaStatement-tekton-provenance.yaml +34 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaTag-001.yaml +5 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaVerificationSummary-001.yaml +9 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaVerificationSummary-custom-results.yaml +23 -0
- slsa_linkml-0.11.6/tests/data/valid/SlsaVerifier-001.yaml +6 -0
- slsa_linkml-0.11.6/tests/test_data.py +26 -0
- slsa_linkml-0.11.6/tests/test_in_toto_import.py +31 -0
- slsa_linkml-0.11.6/tests/test_schema_rules.py +214 -0
- slsa_linkml-0.11.6/uv.lock +2032 -0
- slsa_linkml-0.11.6/website/.gitignore +9 -0
- slsa_linkml-0.11.6/website/README.md +57 -0
- slsa_linkml-0.11.6/website/assets/card.png +0 -0
- slsa_linkml-0.11.6/website/assets/css/custom.css +3 -0
- slsa_linkml-0.11.6/website/assets/css/site.css +360 -0
- slsa_linkml-0.11.6/website/assets/js/graph.js +301 -0
- slsa_linkml-0.11.6/website/assets/js/site.js +264 -0
- slsa_linkml-0.11.6/website/content/_content.gotmpl +62 -0
- slsa_linkml-0.11.6/website/content/browse/_content.gotmpl +15 -0
- slsa_linkml-0.11.6/website/content/changelog/_content.gotmpl +40 -0
- slsa_linkml-0.11.6/website/content/docs/_content.gotmpl +49 -0
- slsa_linkml-0.11.6/website/content/graph.md +4 -0
- slsa_linkml-0.11.6/website/content/health.md +4 -0
- slsa_linkml-0.11.6/website/content/knowledge/_content.gotmpl +75 -0
- slsa_linkml-0.11.6/website/content/schema/_content.gotmpl +34 -0
- slsa_linkml-0.11.6/website/hugo.toml +175 -0
- slsa_linkml-0.11.6/website/layouts/404.html +6 -0
- slsa_linkml-0.11.6/website/layouts/_markup/render-blockquote.html +8 -0
- slsa_linkml-0.11.6/website/layouts/_markup/render-codeblock-mermaid.html +2 -0
- slsa_linkml-0.11.6/website/layouts/_markup/render-heading.html +4 -0
- slsa_linkml-0.11.6/website/layouts/_markup/render-image.html +3 -0
- slsa_linkml-0.11.6/website/layouts/_markup/render-link.html +5 -0
- slsa_linkml-0.11.6/website/layouts/_partials/actor.html +4 -0
- slsa_linkml-0.11.6/website/layouts/_partials/card.html +15 -0
- slsa_linkml-0.11.6/website/layouts/_partials/concept-card.html +97 -0
- slsa_linkml-0.11.6/website/layouts/_partials/concept-link.html +6 -0
- slsa_linkml-0.11.6/website/layouts/_partials/concepts.html +17 -0
- slsa_linkml-0.11.6/website/layouts/_partials/content.html +2 -0
- slsa_linkml-0.11.6/website/layouts/_partials/docs-groups.html +62 -0
- slsa_linkml-0.11.6/website/layouts/_partials/full-url.html +16 -0
- slsa_linkml-0.11.6/website/layouts/_partials/gendoc.html +31 -0
- slsa_linkml-0.11.6/website/layouts/_partials/health-tiles.html +21 -0
- slsa_linkml-0.11.6/website/layouts/_partials/heroes.html +47 -0
- slsa_linkml-0.11.6/website/layouts/_partials/icon.html +9 -0
- slsa_linkml-0.11.6/website/layouts/_partials/inline.html +2 -0
- slsa_linkml-0.11.6/website/layouts/_partials/jsonld.html +8 -0
- slsa_linkml-0.11.6/website/layouts/_partials/labels.html +9 -0
- slsa_linkml-0.11.6/website/layouts/_partials/levels.html +40 -0
- slsa_linkml-0.11.6/website/layouts/_partials/licence.html +9 -0
- slsa_linkml-0.11.6/website/layouts/_partials/literal.html +8 -0
- slsa_linkml-0.11.6/website/layouts/_partials/markdown-file.html +25 -0
- slsa_linkml-0.11.6/website/layouts/_partials/markdown.html +59 -0
- slsa_linkml-0.11.6/website/layouts/_partials/mirrors.html +28 -0
- slsa_linkml-0.11.6/website/layouts/_partials/nav-key.html +22 -0
- slsa_linkml-0.11.6/website/layouts/_partials/neighbourhood.html +51 -0
- slsa_linkml-0.11.6/website/layouts/_partials/own.html +9 -0
- slsa_linkml-0.11.6/website/layouts/_partials/pager.html +15 -0
- slsa_linkml-0.11.6/website/layouts/_partials/preview.html +3 -0
- slsa_linkml-0.11.6/website/layouts/_partials/raw.html +26 -0
- slsa_linkml-0.11.6/website/layouts/_partials/repo-path.html +6 -0
- slsa_linkml-0.11.6/website/layouts/_partials/route.html +42 -0
- slsa_linkml-0.11.6/website/layouts/_partials/routes.html +9 -0
- slsa_linkml-0.11.6/website/layouts/_partials/schema-file.html +26 -0
- slsa_linkml-0.11.6/website/layouts/_partials/sidebar.html +88 -0
- slsa_linkml-0.11.6/website/layouts/_partials/site-path.html +8 -0
- slsa_linkml-0.11.6/website/layouts/_partials/slot-name.html +2 -0
- slsa_linkml-0.11.6/website/layouts/_partials/spec.html +4 -0
- slsa_linkml-0.11.6/website/layouts/_partials/title.html +9 -0
- slsa_linkml-0.11.6/website/layouts/_partials/tones.html +8 -0
- slsa_linkml-0.11.6/website/layouts/_partials/tools.html +30 -0
- slsa_linkml-0.11.6/website/layouts/_partials/trust.html +16 -0
- slsa_linkml-0.11.6/website/layouts/_partials/vendor.html +23 -0
- slsa_linkml-0.11.6/website/layouts/baseof.html +121 -0
- slsa_linkml-0.11.6/website/layouts/browse/section.html +20 -0
- slsa_linkml-0.11.6/website/layouts/changelog/page.html +15 -0
- slsa_linkml-0.11.6/website/layouts/changelog/section.html +12 -0
- slsa_linkml-0.11.6/website/layouts/graph.html +54 -0
- slsa_linkml-0.11.6/website/layouts/health.html +44 -0
- slsa_linkml-0.11.6/website/layouts/home.badge.json +17 -0
- slsa_linkml-0.11.6/website/layouts/home.html +36 -0
- slsa_linkml-0.11.6/website/layouts/home.llms.txt +34 -0
- slsa_linkml-0.11.6/website/layouts/home.llmsfull.txt +20 -0
- slsa_linkml-0.11.6/website/layouts/page.atom.xml +29 -0
- slsa_linkml-0.11.6/website/layouts/page.html +10 -0
- slsa_linkml-0.11.6/website/layouts/page.jsonld.jsonld +2 -0
- slsa_linkml-0.11.6/website/layouts/redirect.html +14 -0
- slsa_linkml-0.11.6/website/layouts/schema/page.html +10 -0
- slsa_linkml-0.11.6/website/layouts/schema/section.html +32 -0
- slsa_linkml-0.11.6/website/layouts/section.html +51 -0
- slsa_linkml-0.11.6/website/pyproject.toml +13 -0
- slsa_linkml-0.11.6/website/scripts/build.sh +74 -0
- slsa_linkml-0.11.6/website/scripts/check-links.py +107 -0
- slsa_linkml-0.11.6/website/scripts/check-svg.py +99 -0
- slsa_linkml-0.11.6/website/scripts/clean-html.py +201 -0
- slsa_linkml-0.11.6/website/scripts/lokf-export.py +30 -0
- slsa_linkml-0.11.6/website/scripts/prepare.sh +214 -0
- slsa_linkml-0.11.6/website/scripts/site-values.py +46 -0
- slsa_linkml-0.11.6/website/scripts/uv-env.sh +39 -0
- slsa_linkml-0.11.6/website/scripts/vendor.sh +43 -0
- slsa_linkml-0.11.6/website/site.toml +68 -0
- slsa_linkml-0.11.6/website/static/brand/knowledge-trust-ladder-logo-dark.svg +22 -0
- slsa_linkml-0.11.6/website/static/brand/knowledge-trust-ladder-logo.svg +22 -0
- slsa_linkml-0.11.6/website/static/fonts/OFL-atkinson-hyperlegible-next.txt +93 -0
- slsa_linkml-0.11.6/website/static/fonts/OFL-source-serif-4.txt +93 -0
- slsa_linkml-0.11.6/website/static/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2 +0 -0
- slsa_linkml-0.11.6/website/static/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2 +0 -0
- slsa_linkml-0.11.6/website/static/fonts/source-serif-4-latin-wght-normal.woff2 +0 -0
- slsa_linkml-0.11.6/website/uv.lock +62 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier
|
|
2
|
+
_commit: v0.5.0
|
|
3
|
+
_src_path: https://github.com/linkml/linkml-project-copier
|
|
4
|
+
add_example: true
|
|
5
|
+
copyright_year: '2026'
|
|
6
|
+
email: noel.mcloughlin@gmail.com
|
|
7
|
+
existing_license_file: ''
|
|
8
|
+
full_name: Noel McLoughlin
|
|
9
|
+
gh_action_docs_preview: false
|
|
10
|
+
gh_action_pypi: true
|
|
11
|
+
github_org: lmodel
|
|
12
|
+
license: Apache-2.0
|
|
13
|
+
project_description: Supply-chain Levels for Software Artifacts (LinkML)
|
|
14
|
+
project_name: slsa
|
|
15
|
+
project_slug: slsa
|
|
16
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Check http://editorconfig.org for more information
|
|
2
|
+
# This is the main config file for this project:
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
charset = utf-8
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
indent_style = space
|
|
10
|
+
indent_size = 2
|
|
11
|
+
trim_trailing_whitespace = true
|
|
12
|
+
|
|
13
|
+
[*.py]
|
|
14
|
+
indent_style = space
|
|
15
|
+
indent_size = 4
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Report a problem with the SLSA LinkML schema or its artefacts
|
|
4
|
+
title: "[Bug] "
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Describe the bug**
|
|
9
|
+
A clear description of what went wrong.
|
|
10
|
+
|
|
11
|
+
**Where?**
|
|
12
|
+
The schema element, generated artefact (`project/...`), or `slsa-linkml` package API involved. A problem in the SLSA specification itself belongs [upstream](https://github.com/slsa-framework/slsa/issues).
|
|
13
|
+
|
|
14
|
+
**To reproduce**
|
|
15
|
+
Steps to reproduce the behavior, including the exact command and input data.
|
|
16
|
+
|
|
17
|
+
**Expected behavior**
|
|
18
|
+
What you expected to happen, and the SLSA passage that says so, if any.
|
|
19
|
+
|
|
20
|
+
## Environment
|
|
21
|
+
|
|
22
|
+
- OS:
|
|
23
|
+
- Python version (`uv run python --version`):
|
|
24
|
+
- `slsa-linkml` version, or the commit you built from:
|
|
25
|
+
- LinkML version (`uv run linkml --version`):
|
|
26
|
+
|
|
27
|
+
**Additional context**
|
|
28
|
+
Logs, tracebacks, or validation output.
|
|
29
|
+
|
|
30
|
+
## AI Assistance
|
|
31
|
+
|
|
32
|
+
If you used AI tools while preparing this issue, you are still the author and responsible for understanding, verifying, and defending your submission. Don't dump LLM output into this issue without curation. See the [AI Covenant](https://github.com/lmodel/slsa/blob/main/AI_COVENANT.md) for details.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest a schema element, artefact or improvement for the SLSA LinkML schema
|
|
4
|
+
title: "[Feature] "
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Problem**
|
|
9
|
+
What problem would this solve?
|
|
10
|
+
|
|
11
|
+
**Proposed solution**
|
|
12
|
+
What you'd like to happen. For a new class, slot or enum value, cite the SLSA passage it would render.
|
|
13
|
+
|
|
14
|
+
**Alternatives considered**
|
|
15
|
+
Any alternative approaches.
|
|
16
|
+
|
|
17
|
+
## AI Assistance
|
|
18
|
+
|
|
19
|
+
If you used AI tools while preparing this issue, you are still the author and responsible for understanding, verifying, and defending your submission. Don't dump LLM output into this issue without curation. See the [AI Covenant](https://github.com/lmodel/slsa/blob/main/AI_COVENANT.md) for details.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<!-- A sidecar sync. The lines above are the sync's report: the release, the files it changed and the pin. -->
|
|
2
|
+
|
|
3
|
+
## Reviewer checklist
|
|
4
|
+
|
|
5
|
+
- [ ] The diff changes only the sidecar's copies, the site's copies, the `ktl` pin and its lock, and `CHANGELOG.md`.
|
|
6
|
+
- [ ] Any workflow changes held above are read and applied on this branch.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Please see the documentation for all configuration options:
|
|
2
|
+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
|
|
3
|
+
|
|
4
|
+
version: 2
|
|
5
|
+
updates:
|
|
6
|
+
# This repository's own workflows. Every action is pinned to a commit SHA
|
|
7
|
+
# with its version in a trailing comment; Dependabot bumps both together.
|
|
8
|
+
# A SHA pin goes stale silently: actionlint catches syntax drift, not age.
|
|
9
|
+
- package-ecosystem: github-actions
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: monthly
|
|
13
|
+
commit-message:
|
|
14
|
+
prefix: "chore(actions)"
|
|
15
|
+
groups:
|
|
16
|
+
github-actions:
|
|
17
|
+
patterns:
|
|
18
|
+
- "*"
|
|
19
|
+
|
|
20
|
+
# The package's own tree (pyproject.toml + uv.lock): linkml-runtime at
|
|
21
|
+
# runtime, the LinkML toolchain and mkdocs for development. main.yaml is
|
|
22
|
+
# the gate that has to stay green.
|
|
23
|
+
- package-ecosystem: uv
|
|
24
|
+
directory: "/"
|
|
25
|
+
schedule:
|
|
26
|
+
interval: monthly
|
|
27
|
+
commit-message:
|
|
28
|
+
prefix: "chore(deps)"
|
|
29
|
+
groups:
|
|
30
|
+
python:
|
|
31
|
+
patterns:
|
|
32
|
+
- "*"
|
|
33
|
+
|
|
34
|
+
# The .lokf/ sidecar's toolchain (the `lokf` package), kept apart from the
|
|
35
|
+
# package tree: it maintains the knowledge bundle and has nothing to do
|
|
36
|
+
# with the schema. A major bump can require concept frontmatter changes,
|
|
37
|
+
# so these want a human read, not a rubber stamp.
|
|
38
|
+
- package-ecosystem: uv
|
|
39
|
+
directory: "/.lokf"
|
|
40
|
+
schedule:
|
|
41
|
+
interval: monthly
|
|
42
|
+
commit-message:
|
|
43
|
+
prefix: "chore(lokf)"
|
|
44
|
+
|
|
45
|
+
# The release job's tools, which .release/package-lock.json pins
|
|
46
|
+
# with every package they pull in.
|
|
47
|
+
# Outside .github/, where Dependabot may change nothing but workflows.
|
|
48
|
+
- package-ecosystem: npm
|
|
49
|
+
directory: "/.release"
|
|
50
|
+
schedule:
|
|
51
|
+
interval: monthly
|
|
52
|
+
commit-message:
|
|
53
|
+
prefix: "ci(release)"
|
|
54
|
+
groups:
|
|
55
|
+
release-tools:
|
|
56
|
+
patterns:
|
|
57
|
+
- "*"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
Closes #
|
|
4
|
+
|
|
5
|
+
## What changed?
|
|
6
|
+
|
|
7
|
+
- [ ] The schema (`src/slsa/schema/slsa.yaml`), and the regenerated artefacts
|
|
8
|
+
- [ ] Tests or example data (`tests/`)
|
|
9
|
+
- [ ] This repo's own `.lokf/knowledge/` bundle (documentation *about this repo*)
|
|
10
|
+
- [ ] Repository packaging only (CI, templates, docs unrelated to the schema)
|
|
11
|
+
|
|
12
|
+
## Checklist
|
|
13
|
+
|
|
14
|
+
- [ ] `just test` passes locally
|
|
15
|
+
- [ ] Generated files were regenerated with `just gen-project`, `just gen-doc`, `just gen-merged` and `just lokf-adapt`, not edited by hand
|
|
16
|
+
- [ ] Each new or changed description cites the SLSA, whitepaper or study passage it renders
|
|
17
|
+
- [ ] `src/slsa/schema/spec/` is unchanged, or replaced whole from a SLSA release with NOTICE updated
|
|
18
|
+
- [ ] If `.lokf/` changed, `cd .lokf && just lokf-validate` passes
|
|
19
|
+
- [ ] A behaviour change has an entry under `## [Unreleased]` in `CHANGELOG.md`
|
|
20
|
+
|
|
21
|
+
## AI Assistance
|
|
22
|
+
|
|
23
|
+
If you used AI tools while preparing this PR, you are still the author and responsible for understanding, verifying, and defending your submission. Please engage with reviewers personally rather than through your agent during feedback and revisions. Don't dump LLM output into this PR without curation. See the [AI Covenant](../AI_COVENANT.md) for details.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Reads and rewrites this repository's own CHANGELOG.md "## [Unreleased]"
|
|
3
|
+
// section for the semantic-release pipeline in
|
|
4
|
+
// .github/workflows/semantic-release.yml. Plain Node, no dependencies:
|
|
5
|
+
// reviewable in one read, matching this project's preference for a fixed,
|
|
6
|
+
// in-repo script over an inline command string (see knowledge-librarian.sh).
|
|
7
|
+
//
|
|
8
|
+
// Usage:
|
|
9
|
+
// node changelog-release.mjs check
|
|
10
|
+
// Exits 1 if "## [Unreleased]" is empty. Used as semantic-release's
|
|
11
|
+
// verifyReleaseCmd, so a release with nothing written up never ships.
|
|
12
|
+
//
|
|
13
|
+
// node changelog-release.mjs notes [version]
|
|
14
|
+
// Prints the Unreleased section's body to stdout; it becomes the
|
|
15
|
+
// release notes when used as generateNotesCmd. With a version arg,
|
|
16
|
+
// also appends `next_version=<version>` to $GITHUB_OUTPUT if that
|
|
17
|
+
// env var is set (a side channel a caller can read even from a
|
|
18
|
+
// --dry-run invocation, where nothing else is written anywhere).
|
|
19
|
+
// When Unreleased is empty and "## [<version>]" exists, it prints
|
|
20
|
+
// that section's body instead. semantic-release runs this command a
|
|
21
|
+
// second time after @semantic-release/git commits the promoted
|
|
22
|
+
// changelog, and the second output becomes the GitHub release body.
|
|
23
|
+
//
|
|
24
|
+
// node changelog-release.mjs promote <version> <date>
|
|
25
|
+
// Retitles "## [Unreleased]" to "## [<version>] - <date>" and
|
|
26
|
+
// inserts a fresh, empty "## [Unreleased]" above it. Used as
|
|
27
|
+
// semantic-release's prepareCmd (never called in --dry-run). Also
|
|
28
|
+
// appends `released=true` and `version=<version>` to $GITHUB_OUTPUT
|
|
29
|
+
// if set.
|
|
30
|
+
|
|
31
|
+
import { readFileSync, writeFileSync, appendFileSync } from "node:fs";
|
|
32
|
+
|
|
33
|
+
const FILE = "CHANGELOG.md";
|
|
34
|
+
const HEADING = "## [Unreleased]";
|
|
35
|
+
|
|
36
|
+
function readUnreleased() {
|
|
37
|
+
const text = readFileSync(FILE, "utf8");
|
|
38
|
+
const start = text.indexOf(HEADING);
|
|
39
|
+
if (start === -1) {
|
|
40
|
+
throw new Error(`${FILE} has no "${HEADING}" heading - this pipeline expects one.`);
|
|
41
|
+
}
|
|
42
|
+
return { text, body: sectionBody(text, start + HEADING.length) };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// The text from bodyStart to the next "## [" heading, trimmed.
|
|
46
|
+
function sectionBody(text, bodyStart) {
|
|
47
|
+
const next = text.indexOf("\n## [", bodyStart);
|
|
48
|
+
const bodyEnd = next === -1 ? text.length : next;
|
|
49
|
+
return text.slice(bodyStart, bodyEnd).trim();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// The body of the "## [<version>] - <date>" section, or "" when there is none.
|
|
53
|
+
function versionBody(text, version) {
|
|
54
|
+
if (!version) return "";
|
|
55
|
+
const start = text.indexOf(`\n## [${version}]`);
|
|
56
|
+
if (start === -1) return "";
|
|
57
|
+
const lineEnd = text.indexOf("\n", start + 1);
|
|
58
|
+
return lineEnd === -1 ? "" : sectionBody(text, lineEnd);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function writeOutput(line) {
|
|
62
|
+
if (process.env.GITHUB_OUTPUT) appendFileSync(process.env.GITHUB_OUTPUT, line);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const [, , cmd, ...args] = process.argv;
|
|
66
|
+
|
|
67
|
+
switch (cmd) {
|
|
68
|
+
case "check": {
|
|
69
|
+
const { body } = readUnreleased();
|
|
70
|
+
if (!body) {
|
|
71
|
+
console.error(
|
|
72
|
+
`${FILE}'s "${HEADING}" section is empty. This pipeline only releases what a ` +
|
|
73
|
+
"person or agent has already described there - write it before merging to main."
|
|
74
|
+
);
|
|
75
|
+
process.exit(1);
|
|
76
|
+
}
|
|
77
|
+
console.error(`ok - "${HEADING}" has ${body.length} characters to release.`);
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
case "notes": {
|
|
82
|
+
const [version] = args;
|
|
83
|
+
const { text, body } = readUnreleased();
|
|
84
|
+
if (version) writeOutput(`next_version=${version}\n`);
|
|
85
|
+
process.stdout.write((body || versionBody(text, version)) + "\n");
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
case "promote": {
|
|
90
|
+
const [version, date] = args;
|
|
91
|
+
if (!version || !date) {
|
|
92
|
+
console.error("usage: changelog-release.mjs promote <version> <date>");
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
const { text, body } = readUnreleased();
|
|
96
|
+
if (!body) {
|
|
97
|
+
console.error(`${FILE}'s "${HEADING}" section is empty; refusing to promote nothing.`);
|
|
98
|
+
process.exit(1);
|
|
99
|
+
}
|
|
100
|
+
const promoted = text.replace(HEADING, `${HEADING}\n\n## [${version}] - ${date}`);
|
|
101
|
+
if (promoted === text) {
|
|
102
|
+
throw new Error(`Replacement had no effect - is "${HEADING}" definitely in ${FILE}?`);
|
|
103
|
+
}
|
|
104
|
+
writeFileSync(FILE, promoted);
|
|
105
|
+
console.error(`promoted "${HEADING}" to "## [${version}] - ${date}" in ${FILE}`);
|
|
106
|
+
writeOutput(`released=true\nversion=${version}\n`);
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
default:
|
|
111
|
+
console.error("usage: changelog-release.mjs <check|notes|promote> ...");
|
|
112
|
+
process.exit(1);
|
|
113
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Open an issue for a failed upstream-watch check, or comment on the open
|
|
3
|
+
# issue with the same title, so a weekly finding is one issue, not many.
|
|
4
|
+
#
|
|
5
|
+
# The body is the check's Markdown report from "$RUNNER_TEMP/report.md", or
|
|
6
|
+
# a note that the check stopped before writing one, plus a link to the run.
|
|
7
|
+
#
|
|
8
|
+
# Usage (in a workflow step): TITLE=... GH_TOKEN=... .github/scripts/report-issue.sh
|
|
9
|
+
set -euo pipefail
|
|
10
|
+
|
|
11
|
+
: "${TITLE:?set TITLE to the issue title}"
|
|
12
|
+
report="${RUNNER_TEMP:?}/report.md"
|
|
13
|
+
body="${RUNNER_TEMP}/issue-body.md"
|
|
14
|
+
|
|
15
|
+
{
|
|
16
|
+
if [ -s "$report" ]; then
|
|
17
|
+
cat "$report"
|
|
18
|
+
else
|
|
19
|
+
echo "The check stopped before writing a report, for example on a network error."
|
|
20
|
+
fi
|
|
21
|
+
echo
|
|
22
|
+
echo "Run: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
|
23
|
+
} > "$body"
|
|
24
|
+
|
|
25
|
+
# gh's --search is fuzzy, so match the exact title before reusing an issue.
|
|
26
|
+
number="$(gh issue list --repo "$GITHUB_REPOSITORY" --state open \
|
|
27
|
+
--search "in:title \"$TITLE\"" --json number,title \
|
|
28
|
+
--jq 'map(select(.title == env.TITLE)) | .[0].number // empty')"
|
|
29
|
+
|
|
30
|
+
if [ -n "$number" ]; then
|
|
31
|
+
gh issue comment "$number" --repo "$GITHUB_REPOSITORY" --body-file "$body"
|
|
32
|
+
echo "Commented on issue #$number."
|
|
33
|
+
else
|
|
34
|
+
gh issue create --repo "$GITHUB_REPOSITORY" --title "$TITLE" --body-file "$body"
|
|
35
|
+
fi
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: CodeQL
|
|
2
|
+
|
|
3
|
+
# Scans this repository's Python, its JavaScript and its workflows with
|
|
4
|
+
# GitHub's CodeQL, and adds each finding to the code scanning alerts. Each
|
|
5
|
+
# language is read without building or running it (build-mode: none), under
|
|
6
|
+
# a read-only token beside the security-events: write its upload needs.
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
branches: [main]
|
|
10
|
+
pull_request:
|
|
11
|
+
schedule:
|
|
12
|
+
- cron: "41 3 * * 3" # Wednesdays at 03:41 UTC
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions: {}
|
|
16
|
+
|
|
17
|
+
concurrency:
|
|
18
|
+
group: codeql-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
analyze:
|
|
23
|
+
name: Analyze (${{ matrix.language }})
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
timeout-minutes: 30
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
security-events: write
|
|
29
|
+
strategy:
|
|
30
|
+
fail-fast: false
|
|
31
|
+
matrix:
|
|
32
|
+
language: [actions, javascript-typescript, python]
|
|
33
|
+
steps:
|
|
34
|
+
- name: Harden the runner
|
|
35
|
+
uses: step-security/harden-runner@1d88384fd173af6ecb012dfd0264a306b711241a # v2.22.4
|
|
36
|
+
with:
|
|
37
|
+
egress-policy: audit
|
|
38
|
+
|
|
39
|
+
- name: Check out the repository
|
|
40
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
41
|
+
with:
|
|
42
|
+
persist-credentials: false
|
|
43
|
+
|
|
44
|
+
- name: Set up CodeQL
|
|
45
|
+
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
|
46
|
+
with:
|
|
47
|
+
languages: ${{ matrix.language }}
|
|
48
|
+
build-mode: none
|
|
49
|
+
|
|
50
|
+
- name: Analyze
|
|
51
|
+
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
|
|
52
|
+
with:
|
|
53
|
+
category: /language:${{ matrix.language }}
|