Type in Supply-chain Levels for Software Artifacts (SLSA)
SlsaResultValue
A result as a VSA writes it: one of the SLSA-defined results SlsaResult lists, or one of the issuer's own, which never starts with SLSA_.
URI: xsd:string
Type Properties#
| Property | Value |
|---|---|
| Type Of | String |
| Base | str |
| Type URI | xsd:string |
Value Constraints#
| Property | Value |
|---|---|
| Regex Pattern | `^(SLSA_BUILD_LEVEL_(UNEVALUATED |
In Subsets#
Comments#
- An issuer’s own result, such as an organization’s ORG_SOURCE_ property, is printable ASCII with no spaces and does not start with SLSA_ in any letter case, so that it cannot pass for an SLSA result.
- It names the base its typeof already gives, because the SQL generator reads base alone and reports a type without one.
See Also#
Notes#
- The pattern lists the values of SlsaResult that start with SLSA_ and then admits any other value that does not, written without a lookahead, which SHACL’s regular expressions lack. One type in place of any_of over the enum and a pattern keeps the OWL output valid, since gen-owl makes the enum a class.
- verified_levels and verified_level repeat the pattern through a YAML anchor, because gen-pydantic checks a slot’s pattern but not its type’s.
- tests/test_schema_rules.py checks the pattern against SlsaResult.
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lmodel/slsa
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | slsa:SlsaResultValue |
| native | slsa:SlsaResultValue |