Resolve "Improve the error reporting for missing credentials in hardening_manifest.yaml and downloads.yaml"
Closes #195 (closed)
This MR handles unbound key errors related to auth in the hardening_manifest.yaml resources section. os.getenv
is also changed to os.environ.get()
in this MR for consistency where gathering the env var doesn't require failing the pipeline.
Successful test jobss:
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/cxlite/-/jobs/1658811 (docker resource)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/cxlite/-/jobs/1658676 (http resource)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/cxlite/-/jobs/1658267 (S3 resource)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/cxlite/-/jobs/1658927 (successful run)