Skip to content
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

Add SRP source provenance report #5632

Merged
merged 4 commits into from Nov 15, 2022
Merged

Conversation

beni0888
Copy link
Collaborator

Signed-off-by: Jesús Benito Calzada bjesus@vmware.com

Description of the change

This PR adds the required SRP source provenance report to the GHA pipeline. Currently, the report is being done in the CircleCI pipeline, but as part of the migration to GHA, we need to implement it there. For this report to work, we need to register a new SRP UID for GHA, which will be something like uid.mtd.provenance_2_5.fragment(obj_uid=uid.obj.build.github(instance='github.com',namespace='vmware-tanzu/kubeapps',...),version=''). An issue has been created in the Jira Service Desk for this task, and we will maintain this PR as a draft until that request is fulfilled.

Benefits

  • Report SRP source provenance from GHA pipeline.
  • GHA pipeline is complete and we can finally decommission the CircleCI pipeline

Possible drawbacks

None.

Applicable issues

Additional information

@beni0888 beni0888 added component/ci Issue related to kubeapps ci system github_actions Pull requests that update GitHub Actions code labels Nov 14, 2022
@beni0888 beni0888 added this to the Migrate CI to GitHub Actions milestone Nov 14, 2022
@beni0888 beni0888 self-assigned this Nov 14, 2022
@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for kubeapps-dev canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit af5b4f7
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/637380b25ca9c3000870a33d

Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
@beni0888 beni0888 marked this pull request as ready for review November 15, 2022 10:29
Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, small question about srp client version but +1 either way. Thanks @beni0888

run: |
set -u
mkdir -p /tmp/srp-cli
curl https://srp-cli.s3.amazonaws.com/srp-cli-latest.tgz -o /tmp/srp-cli/srp-cli-latest.tgz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use a specific version rather than latest for the client here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm TBH, I'm not sure about that, but taking into account that in the CircleCI version we're pointing to a specific version, I guess you're right. Changing it before merging. Thanks for the heads up!

Signed-off-by: Jesús Benito Calzada <bjesus@vmware.com>
@beni0888 beni0888 merged commit a000581 into vmware-tanzu:main Nov 15, 2022
@beni0888 beni0888 deleted the gha-srp-report branch November 15, 2022 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required component/ci Issue related to kubeapps ci system github_actions Pull requests that update GitHub Actions code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants