Skip to content

Commit

Permalink
fix: lint issues in reference.md
Browse files Browse the repository at this point in the history
Signed-off-by: hectorj2f <[email protected]>
  • Loading branch information
hectorj2f committed Oct 13, 2024
1 parent 69d0fa5 commit 4fcf62d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/predicates/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ A more opinionated predicate will increase usability and encourage adoption.


## Prerequisites

The
[in-toto Attestation Framework](https://github.com/in-toto/attestation/blob/main/spec/README.md)
and an SBOM specification such as [SPDX](https://spdx.dev/).

## Model

This predicate is intended to be generated and consumed throughout the software
supply chain. In addition, it is intended to be used in the analysis of it as a
whole.
Expand All @@ -56,6 +58,7 @@ whole.
```

### Parsing Rules

This predicate follows the
[in-toto Attestation Framework's parsing rules](../v1/README.md#parsing-rules).

Expand All @@ -68,6 +71,7 @@ being independently associated with each subject. See the
[example](#reference-to-an-sbom-for-multiple-artifacts) with two subjects.

### Fields

`attester.id`: string ([TypeUri](../v1/field_types.md#typeuri)), *required*

An identifier for the system that provides the document.
Expand All @@ -79,7 +83,9 @@ for each. If the file type is unknown, `application/octet-stream` SHOULD be
used.

## Examples

### Reference to an SBOM for an image

```json
{
"_type": "https://in-toto.io/Statement/v1",
Expand All @@ -104,11 +110,14 @@ used.
}
}
```

### Reference to an SBOM for multiple artifacts

In this example, a single SBOM was generated for a set of build outputs by
scanning the source file system. Per the [parsing rules](#parsing-rules), this
attestation SHOULD be interpreted to mean that the SBOM was generated for both
subjects -- it will list dependencies of both foo and bar.

```json
{
"_type": "https://in-toto.io/Statement/v1",
Expand Down

0 comments on commit 4fcf62d

Please sign in to comment.