-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload SBOMs in the promotion pipeline #28
Upload SBOMs in the promotion pipeline #28
Conversation
8d529b4
to
d864632
Compare
d864632
to
f95c06c
Compare
Have tested it now, appears to work! 🎉 |
f95c06c
to
9688943
Compare
Fixed formatting |
9688943
to
837285b
Compare
Rebased on main. I noticed that adding the gitops secrets to |
bea17de
to
f80f65c
Compare
This lead to / will lead to some more changes, so I opened a separate PR for that #56 |
It is completely broken at the moment - it is just all the scripts from the Tekton task [1] concatenated together. [1]: https://github.com/konflux-ci/build-definitions/blob/main/task/upload-sbom-to-trustification/0.1/upload-sbom-to-trustification.yaml Signed-off-by: Adam Cmiel <[email protected]>
Add the description. Add the env vars that would be set from the stepTemplate in the Tekton task. For the WORKDIR, use a tmpdir (the Tekton task uses a pod-local dir). To replace the 'trustification-secret' that contains Trustification config and auth, use 'TRUSTIFICATION_*' env vars instead. Signed-off-by: Adam Cmiel <[email protected]>
curl got the --fail-with-body option in version 7.76.0 (31. 3. 2021) Some users - for example the QE Jenkins agent [1] - may have an older version of curl. Use --fail-with-body only if the curl version is new enough. [1]: https://github.com/redhat-appstudio/rhtap-utils/blob/8ade9d1336da38fcb26725f71b566378fcc61ee7/jenkins/jenkins-agent/Dockerfile Signed-off-by: Adam Cmiel <[email protected]>
Source the common.sh script to do the common RHTAP setup (most importantly, to source the rhtap/env.sh in the user's repository). Signed-off-by: Adam Cmiel <[email protected]>
Signed-off-by: Adam Cmiel <[email protected]>
f80f65c
to
8d7deb2
Compare
Rebased on main |
* Add a helper script that generates the vars * In the Jenkins pipelines, read the vars from secrets * Update the hack/*-set-* scripts to create the secrets Signed-off-by: Adam Cmiel <[email protected]>
The result of the build pipelines are now in ./tmp/build Signed-off-by: Adam Cmiel <[email protected]>
8d7deb2
to
26ba217
Compare
Also updated the |
@chmeliik
Testing was done via checkout of this pr
Command: cosign verify-attestation --type=slsaprovenance1 --key /tmp/download-sbom-workdir.xQGJOs/cosign.pub ***/bootstrap:github-be414ecb8ddf3ef706b5f4cad0428194cdf634ce Error: no matching attestations: signature not found in transparency log |
@jduimovich are you setting IGNORE_REKOR somewhere other than here? It defaults to false https://github.com/jduimovich/tssc-dev-gitops/blob/dccd3599ed97ec5cba6cc779f3a5287be328dddc/rhtap/env.sh#L44 |
It works with a proper REKOR_HOST and TUFS_MIRROR |
Builds on #23
Instructions for testing are in the README update
Haven't tested in Jenkins yet