Commented out unused code (I think)
This commit is contained in:
@@ -32,6 +32,7 @@ async function dockerInfo() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
async function getScoutVersion() {
|
async function getScoutVersion() {
|
||||||
let version;
|
let version;
|
||||||
await core.group(`Docker scout version`, async () => {
|
await core.group(`Docker scout version`, async () => {
|
||||||
@@ -51,6 +52,7 @@ async function getScoutVersion() {
|
|||||||
});
|
});
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
async function runScoutCommand(commands, image, format, outputFile) {
|
async function runScoutCommand(commands, image, format, outputFile) {
|
||||||
const resultPath = path.join(fs.mkdtempSync(path.join(os.tmpdir(), 'docker-scout-action-')), 'result.txt');
|
const resultPath = path.join(fs.mkdtempSync(path.join(os.tmpdir(), 'docker-scout-action-')), 'result.txt');
|
||||||
@@ -83,7 +85,7 @@ async function main(inputs) {
|
|||||||
await pullDockerImage(scoutVersion);
|
await pullDockerImage(scoutVersion);
|
||||||
await copyBinary(scoutVersion);
|
await copyBinary(scoutVersion);
|
||||||
await dockerInfo();
|
await dockerInfo();
|
||||||
const version = await getScoutVersion();
|
//const version = await getScoutVersion();
|
||||||
// TODO: cache binary (no changes per your request)
|
// TODO: cache binary (no changes per your request)
|
||||||
await runScoutCommand(commands, imageName, outputFormat, outputFile);
|
await runScoutCommand(commands, imageName, outputFormat, outputFile);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user