This commit is contained in:
2023-08-18 22:59:59 -07:00
parent 3b98ba922b
commit 176ce2b913
3 changed files with 5 additions and 15 deletions

View File

@@ -2,7 +2,7 @@
const core = require('@actions/core');
const http = require('http');
const https = require('https');
const querystring = require('querystring');
// const querystring = require('querystring');
const req_timeout_ms = 30_000;
const manifest_media_type = 'application/vnd.docker.distribution.manifest.v2+json';
@@ -79,6 +79,7 @@ async function get_manifest(input) {
throw new Error('failed to fetch existing manifest');
}
console.log('get manifest response', { status, headers, body });
return body;
}
@@ -90,8 +91,6 @@ async function put_manifest(new_tag, manifest, input) {
'content-length': content.byteLength,
};
console.log({ manifest, req_headers });
http_basic_auth(req_headers, input);
// if (input.token) {