generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #4 from actions/eugene/initAttest
init attest action
- Loading branch information
Showing
35 changed files
with
87,223 additions
and
3,311 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,3 +101,6 @@ __tests__/runner/* | |
.idea | ||
.vscode | ||
*.code-workspace | ||
|
||
packages/**/dist | ||
packages/attest/dist |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"spdxVersion": "SPDX-2.3", | ||
"dataLicense": "CC0-1.0", | ||
"SPDXID": "SPDXRef-DOCUMENT", | ||
"name": "./", | ||
"documentNamespace": "https://anchore.com/syft/dir/80b363b6-87f4-4162-853f-60d402537d20", | ||
"creationInfo": { | ||
"licenseListVersion": "3.22", | ||
"creators": [ | ||
"Organization: Anchore, Inc", | ||
"Tool: syft-0.103.1" | ||
], | ||
"created": "2024-01-31T18:22:50Z" | ||
}, | ||
"packages": [ | ||
{ | ||
"name": "@ampproject/remapping", | ||
"SPDXID": "SPDXRef-Package-npm--ampproject-remapping-5266573ba4f24a42", | ||
"versionInfo": "2.2.1", | ||
"supplier": "NOASSERTION", | ||
"downloadLocation": "NOASSERTION", | ||
"filesAnalyzed": false, | ||
"sourceInfo": "acquired package info from installed node module manifest file: /yarn.lock", | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "Apache-2.0", | ||
"copyrightText": "NOASSERTION", | ||
"externalRefs": [ | ||
{ | ||
"referenceCategory": "SECURITY", | ||
"referenceType": "cpe23Type", | ||
"referenceLocator": "cpe:2.3:a:\\@ampproject\\/remapping:\\@ampproject\\/remapping:2.2.1:*:*:*:*:*:*:*" | ||
}, | ||
{ | ||
"referenceCategory": "PACKAGE-MANAGER", | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/%40ampproject/[email protected]" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,55 @@ | ||
name: 'The name of your action here' | ||
description: 'Provide a description here' | ||
author: 'Your name or organization here' | ||
name: 'Generate Generic Attestations' | ||
description: 'Generate 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' | ||
subject-path: | ||
description: > | ||
Path to the artifact serving as the subject of the attestation. Must | ||
specify exactly one of "subject-path" or "subject-digest". | ||
required: false | ||
subject-digest: | ||
description: > | ||
Digest of the subject for for the attestation. 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 attestation. Required unless | ||
"subject-path" is specified, in which case it will be inferred from the | ||
path. | ||
required: false | ||
predicate-type: | ||
description: > | ||
URI identifying the type of the predicate. | ||
required: true | ||
default: '1000' | ||
|
||
# Define your outputs here. | ||
predicate: | ||
description: > | ||
String containing the value for the attestation predicate. Must supply | ||
exactly one of "predicate-path" or "predicate". | ||
required: false | ||
predicate-path: | ||
description: > | ||
Path to the file which contains the content for the attestation predicate. | ||
Must supply exactly one of "predicate-path" or "predicate". | ||
required: false | ||
push-to-registry: | ||
description: > | ||
Whether to push the attestation 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 | ||
github-token: | ||
description: > | ||
The GitHub token used to make authenticated API requests. | ||
default: ${{ github.token }} | ||
required: false | ||
outputs: | ||
time: | ||
description: 'Your output description here' | ||
bundle-path: | ||
description: 'The path to the file containing the attestation bundle(s).' | ||
|
||
runs: | ||
using: node20 | ||
main: dist/index.js | ||
main: ./dist/index.js |
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.