SLSA
Theme
Text size
GitHub Menu

Class in Supply-chain Levels for Software Artifacts (SLSA)

SlsaSourceRevision

A logically immutable snapshot of a repository's tracked files, with its version-control metadata: author, time and parent revisions.

URI: slsa:class/SlsaSourceRevision

 classDiagram
    class SlsaSourceRevision
    click SlsaSourceRevision href "../../classes/SlsaSourceRevision/"
      SlsaSourceRevision : authored_at
        
      SlsaSourceRevision : authored_by
        
      SlsaSourceRevision : parent_revisions
        
          
    
        
        
        SlsaSourceRevision --> "*" SlsaSourceRevision : parent_revisions
        click SlsaSourceRevision href "../../classes/SlsaSourceRevision/"
    

        
      SlsaSourceRevision : repository
        
          
    
        
        
        SlsaSourceRevision --> "0..1" SlsaSourceRepository : repository
        click SlsaSourceRepository href "../../classes/SlsaSourceRepository/"
    

        
      SlsaSourceRevision : review_type
        
          
    
        
        
        SlsaSourceRevision --> "0..1" SlsaReviewType : review_type
        click SlsaReviewType href "../../enums/SlsaReviewType/"
    

        
      SlsaSourceRevision : revision_id
        
      SlsaSourceRevision : source_level
        
          
    
        
        
        SlsaSourceRevision --> "0..1" SlsaSourceLevel : source_level
        click SlsaSourceLevel href "../../enums/SlsaSourceLevel/"
    

        
      

Slots#

NameCardinality and RangeDescriptionInheritance
repository0..1
SlsaSourceRepository
The source repository this belongs todirect
revision_id1
String
The revision identifier the SCS assigns, such as a git commit id or a path- q…direct
authored_by0..1
String
The identity of the person or automation that authored the revisiondirect
authored_at0..1
Datetime
When the revision was createddirect
parent_revisions*
SlsaSourceRevision
The revisions this one descends from, which together form the change historydirect
source_level0..1
SlsaSourceLevel
The SLSA Source level the SCS asserts for the revisiondirect
review_type0..1
SlsaReviewType
The form of review that approved the revisiondirect

Usages#

used byused intypeused
SlsaDocumentsource_revisionsrangeSlsaSourceRevision
SlsaSourceRevisionparent_revisionsrangeSlsaSourceRevision
SlsaNamedReferencerevisionrangeSlsaSourceRevision
SlsaBranchrevisionrangeSlsaSourceRevision
SlsaTagrevisionrangeSlsaSourceRevision
SlsaSourceProvenancerevisionrangeSlsaSourceRevision

In Subsets#

Comments#

  • A revision id is unique within its repository and may recur in another; a document that holds revisions from several repositories qualifies them.

See Also#

Identifier and Mapping Information#

Schema Source#

Mappings#

Mapping TypeMapped Value
selfslsa:SlsaSourceRevision
nativeslsa:SlsaSourceRevision

LinkML Source#

Direct#

YAML
name: SlsaSourceRevision
description: 'A logically immutable snapshot of a repository''s tracked files, with
  its version-control metadata: author, time and parent revisions.'
comments:
- A revision id is unique within its repository and may recur in another; a document
  that holds revisions from several repositories qualifies them.
in_subset:
- slsa_source_track
from_schema: https://w3id.org/lmodel/slsa
see_also:
- https://slsa.dev/spec/v1.2/source-requirements#definitions
slots:
- repository
attributes:
  revision_id:
    name: revision_id
    description: The revision identifier the SCS assigns, such as a git commit id
      or a path- qualified sequence number.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    identifier: true
    domain_of:
    - SlsaSourceRevision
  authored_by:
    name: authored_by
    description: The identity of the person or automation that authored the revision.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    domain_of:
    - SlsaSourceRevision
  authored_at:
    name: authored_at
    description: When the revision was created.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    domain_of:
    - SlsaSourceRevision
    range: datetime
  parent_revisions:
    name: parent_revisions
    description: The revisions this one descends from, which together form the change
      history.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    domain_of:
    - SlsaSourceRevision
    range: SlsaSourceRevision
    multivalued: true
  source_level:
    name: source_level
    description: The SLSA Source level the SCS asserts for the revision.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    domain_of:
    - SlsaSourceRevision
    range: SlsaSourceLevel
  review_type:
    name: review_type
    description: The form of review that approved the revision.
    in_subset:
    - slsa_adoption_study
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    domain_of:
    - SlsaSourceRevision
    range: SlsaReviewType

Induced#

YAML
name: SlsaSourceRevision
description: 'A logically immutable snapshot of a repository''s tracked files, with
  its version-control metadata: author, time and parent revisions.'
comments:
- A revision id is unique within its repository and may recur in another; a document
  that holds revisions from several repositories qualifies them.
in_subset:
- slsa_source_track
from_schema: https://w3id.org/lmodel/slsa
see_also:
- https://slsa.dev/spec/v1.2/source-requirements#definitions
attributes:
  revision_id:
    name: revision_id
    description: The revision identifier the SCS assigns, such as a git commit id
      or a path- qualified sequence number.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    identifier: true
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    range: string
    required: true
  authored_by:
    name: authored_by
    description: The identity of the person or automation that authored the revision.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    range: string
  authored_at:
    name: authored_at
    description: When the revision was created.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    range: datetime
  parent_revisions:
    name: parent_revisions
    description: The revisions this one descends from, which together form the change
      history.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    range: SlsaSourceRevision
    multivalued: true
  source_level:
    name: source_level
    description: The SLSA Source level the SCS asserts for the revision.
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    range: SlsaSourceLevel
  review_type:
    name: review_type
    description: The form of review that approved the revision.
    in_subset:
    - slsa_adoption_study
    from_schema: https://w3id.org/lmodel/slsa/slsa_source
    rank: 1000
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    range: SlsaReviewType
  repository:
    name: repository
    description: The source repository this belongs to.
    in_subset:
    - slsa_source_track
    from_schema: https://w3id.org/lmodel/slsa
    rank: 1000
    slot_uri: slsa:repository
    owner: SlsaSourceRevision
    domain_of:
    - SlsaSourceRevision
    - SlsaNamedReference
    range: SlsaSourceRepository