Add snapshot correlator action input

This commit is contained in:
gitulisca
2025-04-03 05:21:10 +00:00
parent 58dce73160
commit fb88c2d3ea
7 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -14,6 +14,7 @@ import ComponentDetection from './componentDetection';
async function run() {
let manifests = await ComponentDetection.scanAndGetManifests(core.getInput('filePath'));
const correlatorInput = core.getInput('correlator')?.trim() || github.context.job;
let snapshot = new Snapshot({
name: "Component Detection",
@@ -22,7 +23,7 @@ async function run() {
},
github.context,
{
correlator:`${github.context.job}`,
correlator: correlatorInput,
id: github.context.runId.toString()
});