forked from datatrails/scitt-action
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to Signed Statements for Hashed Payloads (#5)
* Add receipt retreival, cleanup debugging info Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Fix token file reference Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add sample for the SCITT Action Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add skip-receipt Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add skip-receipt Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Fix parameter reference for skip-receipt Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add file error handling Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Fix parameter reference for skip-receipt Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Test curl errors Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Test curl errors Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Change to signed statements of hashed payloads Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Merge hashed payloads to digicert signed statements Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Update numbered to named variables Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Fix param ordering Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Enable debugging Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Name parameters Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Name parameters Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add receipt handling Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Update HEADER parameters for private use Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Readme sample updates Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Comment out debugging output Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Change return to exit for error handling Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add more error handling Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add COSE Type Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Fix call to generate a receipt Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add PREVIEW heading Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add error handling for check-operation-status Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Add error handling for check-operation-status Signed-off-by: steve lasker <stevenlasker@hotmail.com> * Remove duplicative lines Signed-off-by: steve lasker <stevenlasker@hotmail.com> * PR Feedback Signed-off-by: steve lasker <stevenlasker@hotmail.com> --------- Signed-off-by: steve lasker <stevenlasker@hotmail.com>
- Loading branch information
1 parent
2f8020e
commit 08d08ee
Showing
6 changed files
with
232 additions
and
110 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
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,40 +1,49 @@ | ||
name: 'DataTrails SCITT API' | ||
description: 'Register, Get Receipts and Query Feeds from the DataTrails SCITT API' | ||
inputs: | ||
content-type: | ||
description: 'The payload content type (iana mediaType) to be registered on the SCITT Service (eg: application/spdx+json, application/vnd.cyclonedx+json, Scan Result, Attestation)' | ||
required: true | ||
datatrails-client_id: | ||
description: 'The CLIENT_ID used to access the DataTrails SCITT APIs' | ||
required: true | ||
datatrails-secret: | ||
description: 'The SECRET used to access the DataTrails SCITT APIs' | ||
required: true | ||
subject: | ||
description: 'Unique ID for the collection of statements about an artifact' | ||
required: true | ||
payload: | ||
payload-file: | ||
description: 'The payload file to be registered on the SCITT Service (eg: SBOM, Scan Result, Attestation)' | ||
required: true | ||
content-type: | ||
description: 'The payload content type (iana mediaType) to be registered on the SCITT Service (eg: application/spdx+json, application/vnd.cyclonedx+json, Scan Result, Attestation)' | ||
required: true | ||
payload-location: | ||
description: 'Optional location the content of the payload may be stored.' | ||
required: false | ||
receipt-file: | ||
description: 'The filename to save the cbor receipt' | ||
required: false | ||
default: 'receipt.cbor' | ||
signed-statement-file: | ||
description: 'File representing the signed SCITT Statement that will be registered on SCITT.' | ||
required: false | ||
default: 'signed-statement.cbor' | ||
receipt-file: | ||
description: 'The file to save the cbor receipt' | ||
skip-receipt: | ||
description: 'To skip receipt retrieval, set to 1' | ||
required: false | ||
default: 'receipt.cbor' | ||
default: '0' | ||
subject: | ||
description: 'Unique ID for the collection of statements about an artifact' | ||
required: true | ||
outputs: | ||
token: # id of output | ||
description: 'the token used to authenticate' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.content-type }} | ||
- ${{ inputs.datatrails-client_id }} | ||
- ${{ inputs.datatrails-secret }} | ||
- ${{ inputs.subject }} | ||
- ${{ inputs.payload }} | ||
- ${{ inputs.content-type }} | ||
- ${{ inputs.signed-statement-file }} | ||
- ${{ inputs.payload-file }} | ||
- ${{ inputs.payload-location}} | ||
- ${{ inputs.receipt-file }} | ||
- ${{ inputs.signed-statement-file }} | ||
- ${{ inputs.skip-receipt }} | ||
- ${{ inputs.subject }} |
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
Oops, something went wrong.