Refactor into a composite action and integrate with generate-build-provenance action

- Refactor the action from a 'node' action to a 'composite' action
- Create and output a sha256 hash of the image manifest
- Update action inputs & outputs
- Integrate with the 'generate-build-provenance' action as part of the composite action
This commit is contained in:
David Daly
2024-01-19 19:00:06 +00:00
committed by Edwin Sirko
parent 997bea009b
commit 1fbd6bde21
5 changed files with 61 additions and 6 deletions
+3 -2
View File
@@ -39,8 +39,9 @@ export async function run(): Promise<void> {
// Gather & validate user inputs
const token: string = core.getInput('token')
const registryURL: URL = new URL(core.getInput('registry')) // TODO: Should this be dynamic? Maybe an API endpoint to grab the registry for GHES/proxima purposes.
const registryURL: URL = new URL('https://ghcr.io/') // TODO: Should this be dynamic? Maybe an API endpoint to grab the registry for GHES/proxima purposes.
console.log(core.getInput('registry'))
console.log(`registryURL: ${registryURL}`)
// Paths to be included in the OCI image
const paths: string[] = core.getInput('path').split(' ')
let path = ''