Commented out unused code (I think)

This commit is contained in:
Daan Selen
2025-08-08 22:21:01 +02:00
parent 9da7585e9a
commit 3749fc3adf

View File

@@ -32,6 +32,7 @@ async function dockerInfo() {
});
}
/*
async function getScoutVersion() {
let version;
await core.group(`Docker scout version`, async () => {
@@ -51,6 +52,7 @@ async function getScoutVersion() {
});
return version;
}
*/
async function runScoutCommand(commands, image, format, outputFile) {
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 copyBinary(scoutVersion);
await dockerInfo();
const version = await getScoutVersion();
//const version = await getScoutVersion();
// TODO: cache binary (no changes per your request)
await runScoutCommand(commands, imageName, outputFormat, outputFile);
}