UNCLASSIFIED - NO CUI

Skip to content

Pass docker_config directory to Skopeo and ORAS

Cody Miller requested to merge sbom-montioring-fix-3 into master

Merge Request Description

Rescan-rebuild stage was seen failing due to ORAS download failing: https://repo1.dso.mil/dsop/parasoft/parasoft/cpptest/cpptest-professional/-/jobs/13681759

Determined root cause was no authentication. This MR refactors Skopeo and ORASArtifact classes to receive a docker config directory as an argument.

Merge Request BOE

Risk

Lint stage was modified -> risk

Mitigated by running pipeline in staging (see below)

Testing

Skopeo and ORASArtifact classes were tested locally and produced desired results:

from ironbank.pipeline.container_tools.skopeo import Skopeo

Skopeo.inspect('ironbank/opensource/python:v3.10.6', '/Users/cmiller/repos/ironbank-pipeline/docker_config/')
from ironbank.pipeline.artifacts import ORASArtifact

ORASArtifact.download('registry1.dso.mil/ironbank/redhat/ubi/ubi8@sha256:0efb3d617d8b525910cf3bba1f4afd77c54e19b321d6b350bf43e648a6b9c837', 
'/Users/cmiller/repos/ironbank-pipeline/', '/Users/cmiller/repos/ironbank-pipeline/docker_config/')

Full pipeline ran in staging:

Edited by Cody Miller

Merge request reports