generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from actions/eugene/init-attest-build-provenance
init attest build provenance
- Loading branch information
Showing
35 changed files
with
77,228 additions
and
1,116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ lib/ | |
dist/ | ||
node_modules/ | ||
coverage/ | ||
packages/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,3 +101,5 @@ __tests__/runner/* | |
.idea | ||
.vscode | ||
*.code-workspace | ||
|
||
packages/attest/dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,59 @@ | ||
name: 'The name of your action here' | ||
description: 'Provide a description here' | ||
author: 'Your name or organization here' | ||
name: 'Attest Build Provenance' | ||
description: 'Generate provenance attestations for build artifacts' | ||
author: 'GitHub' | ||
|
||
# Add your action's branding here. This will appear on the GitHub Marketplace. | ||
branding: | ||
icon: 'heart' | ||
color: 'red' | ||
|
||
# Define your inputs here. | ||
inputs: | ||
milliseconds: | ||
description: 'Your input description here' | ||
required: true | ||
default: '1000' | ||
|
||
# Define your outputs here. | ||
github-token: | ||
description: > | ||
The GitHub token used to make authenticated API requests. | ||
default: ${{ github.token }} | ||
required: false | ||
subject-path: | ||
description: > | ||
Path to the artifact for which provenance will be generated. Must specify | ||
exactly one of "subject-path" or "subject-digest". | ||
required: false | ||
subject-digest: | ||
description: > | ||
Digest of the subject for which provenance will be generated. Must be in | ||
the form "algorithm:hex_digest" (e.g. "sha256:abc123..."). Must specify | ||
exactly one of "subject-path" or "subject-digest". | ||
required: false | ||
subject-name: | ||
description: > | ||
Subject name as it should appear in the provenance statement. Required | ||
unless "subject-path" is specified, in which case it will be inferred from | ||
the path. | ||
push-to-registry: | ||
description: > | ||
Whether to push the provenance statement to the image registry. Requires | ||
that the "subject-name" parameter specify the fully-qualified image name | ||
and that the "subject-digest" parameter be specified. Defaults to false. | ||
default: false | ||
required: false | ||
outputs: | ||
time: | ||
description: 'Your output description here' | ||
bundle-path: | ||
description: 'The path to the file containing the attestation bundle(s).' | ||
value: ${{ steps.attest.outputs.bundle-path }} | ||
|
||
runs: | ||
using: node20 | ||
main: dist/index.js | ||
using: 'composite' | ||
steps: | ||
- uses: ./generate-build-provenance-statement | ||
id: generate-build-provenance-statement | ||
with: | ||
github-token: ${{ inputs.github-token }} | ||
subject-path: ${{ inputs.subject-path }} | ||
subject-digest: ${{ inputs.subject-digest }} | ||
subject-name: ${{ inputs.subject-name }} | ||
push-to-registry: ${{ inputs.push-to-registry }} | ||
- uses: actions/attest@main | ||
id: attest | ||
with: | ||
github-token: ${{ inputs.github-token }} | ||
subject-path: ${{ inputs.subject-path }} | ||
subject-digest: ${{ inputs.subject-digest }} | ||
subject-name: ${{ inputs.subject-name }} | ||
push-to-registry: ${{ inputs.push-to-registry }} | ||
predicate-type: ${{ steps.generate-build-provenance-statement.outputs.predicate-type }} | ||
predicate: ${{ steps.generate-build-provenance-statement.outputs.predicate }} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.