UNCLASSIFIED - NO CUI

Skip to content

Resolve "Publish - upload to S3 stage $IMG_VERSION"

Kenneth Maguire requested to merge 32-Image-Version-Fix into development

This MR removes any number of ../ from IMG_VERSION since it is untrusted and can be changed. Confirmed that IMG_VERSION is only set in preprocess in the version.py script. Added a case to the if statement below it to check if the string resolved to "". Several tests were performed locally and I've added them to a comment in the ticket #32 (closed).


**Relevant test job to confirm it works as expected:**
https://repo1.dsop.io/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/447478

**Other relevant pipeline runs:**
https://repo1.dsop.io/dsop/opensource/pipeline-test-project/ubi8-minimal/-/pipelines/55682
https://repo1.dsop.io/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/447441


Closes #32 (closed)

Merge request reports