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-02-02 12:55:36 -05:00
committed by Edwin Sirko
parent 997bea009b
commit 1fbd6bde21
5 changed files with 61 additions and 6 deletions
Generated Vendored
+3 -1
View File
@@ -74764,7 +74764,9 @@ async function run() {
}
// Gather & validate user inputs
const token = core.getInput('token');
const registryURL = new URL(core.getInput('registry')); // TODO: Should this be dynamic? Maybe an API endpoint to grab the registry for GHES/proxima purposes.
const registryURL = 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 = core.getInput('path').split(' ');
let path = '';