Skip to content
Snippets Groups Projects
Commit a7e24d51 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(docker): throw error if no manifest config

parent a5ac249b
No related branches found
No related tags found
No related merge requests found
......@@ -382,6 +382,11 @@ async function getLabels(registry, repository, tag) {
const manifest = JSON.parse(manifestResponse.body);
let labels = {};
const configDigest = manifest.config.digest;
// istanbul ignore if
if (!manifest.config) {
logger.warn({ manifest }, 'Docker manifest error: no config');
throw new Error('registry-failure');
}
const headers = await getAuthHeaders(registry, repository);
if (!headers) {
logger.info('No docker auth found - returning');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment