Skip to content

Commit 6d38a0e

Browse files
Merge pull request #73 from containers/1.1-lint-auth-fix
fix(lint): use correct auth in manifest linter
2 parents f4cae01 + a113d21 commit 6d38a0e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

image/linter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def lint(
387387
arch_image = ContainerImage(
388388
f"{artifact.get_name()}@{entry.get_digest()}"
389389
)
390-
arch_manifest = arch_image.get_manifest(auth=AUTH)
390+
arch_manifest = arch_image.get_manifest(auth=auth)
391391
manifests.append(arch_manifest)
392392
manifest_results = self.manifest_linter.lint(
393393
arch_manifest, config
@@ -398,7 +398,7 @@ def lint(
398398
arch_config = ContainerImage.get_config_static(
399399
ref=arch_image,
400400
manifest=arch_manifest,
401-
auth=AUTH
401+
auth=auth
402402
)
403403
config_results = self.config_linter.lint(arch_config, config)
404404
for result in config_results:
@@ -410,7 +410,7 @@ def lint(
410410
img_config = ContainerImage.get_config_static(
411411
ref=artifact,
412412
manifest=manifest,
413-
auth=AUTH
413+
auth=auth
414414
)
415415
results.extend(self.config_linter.lint(img_config, config))
416416

0 commit comments

Comments
 (0)