UNCLASSIFIED

Commit 00672b75 authored by David Freeman's avatar David Freeman
Browse files

Merge branch '32-Image-Version-Fix' into 'development'

Resolve "Publish - upload to S3 stage $IMG_VERSION"

Closes #32

See merge request !163
parents e3151c07 020fd3ab
Pipeline #55900 passed with stages
in 1 minute and 43 seconds
......@@ -99,6 +99,13 @@ def main():
)
args = parser.parse_args()
version = parse()
# create regex to check if path traversal is in version
wl_re = re.compile(r"[a-zA-Z0-9_][a-zA-Z0-9_.\-]*")
if wl_re.fullmatch(version) == None or version == "" or len(version) > 128:
logging.error(
"The format for IMG_VERSION is invalid. Please make sure that the value for your version field has a valid format in your download.yaml file"
)
return 1
if version is None:
logging.error(
"Could not parse version out of repo. Please include a version field in your download.yaml file."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment