Skip to content

Commit

Permalink
minor fixes, updates (#354)
Browse files Browse the repository at this point in the history
* minor fixes, updates

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* Update internal/builders/generic/README.md

Co-authored-by: Ian Lewis <ianlewis@google.com>

* Update internal/builders/generic/README.md

Co-authored-by: Ian Lewis <ianlewis@google.com>

* Update internal/builders/generic/README.md

Co-authored-by: Ian Lewis <ianlewis@google.com>

Co-authored-by: Ian Lewis <ianlewis@google.com>
Co-authored-by: laurentsimon <64505099+laurentsimon@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 20, 2022
1 parent 9da8ee8 commit cff06c1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions internal/builders/generic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ output:
$ sha256sum artifact1 artifact2 ... | base64 -w0
```

This workflow expects the `base64-subjects` input to decode to a string conforming to the expected output of the `sha256sum` command. Specifically, the decoded output is expected to be comprised of a hash value followed by a space followed by the artifact name.

After you have encoded your digest, add a new job to call the reusable workflow.

```yaml
Expand Down Expand Up @@ -176,19 +178,15 @@ issue](https://github.com/slsa-framework/slsa-github-generator/issues/new/choose

### Workflow Inputs

The builder workflow
[.github/workflows/generator_generic_slsa3.yml](.github/workflows/generator_generic_slsa3.yml) accepts
the following inputs:
The [generic workflow](https://github.com/slsa-framework/slsa-github-generator/blob/main/.github/workflows/generator_generic_slsa3.yml) accepts the following inputs:

| Name | Required | Description |
| ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `base64-subjects` | yes | Artifacts for which to generate provenance, formatted the same as the output of sha256sum (SHA256 NAME\n[...]) and base64 encoded. |
| `base64-subjects` | yes | Artifact(s) for which to generate provenance, formatted the same as the output of sha256sum (SHA256 NAME\n[...]) and base64 encoded. The encoded value should decode to, for example: `90f3f7d6c862883ab9d856563a81ea6466eb1123b55bff11198b4ed0030cac86 foo.zip` |

### Workflow Outputs

The builder workflow
[.github/workflows/generator_generic_slsa3.yml](.github/workflows/generator_generic_slsa3.yml)
produces the following outputs:
The [generic workflow](https://github.com/slsa-framework/slsa-github-generator/blob/main/.github/workflows/generator_generic_slsa3.yml) produces the following outputs:

| Name | Description |
| ------------------ | ------------------------------------------ |
Expand All @@ -206,7 +204,7 @@ The project generates SLSA provenance with the following values.
### Provenance Example

The following is an example of the generated proveanance. Provenance is
generated as an [in-toto](https://in-toto.io/) statement with a SLSA predecate.
generated as an [in-toto](https://in-toto.io/) statement with a SLSA predicate.

```json
{
Expand Down

0 comments on commit cff06c1

Please sign in to comment.