-
Notifications
You must be signed in to change notification settings - Fork 89
Add GitHub Actions summary for the create evidence command #1423
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
Conversation
a54b8a4 to
2db73d4
Compare
|
|
||
| func GenerateEvidenceUrlByType(data EvidenceSummaryData, section summarySection) (string, error) { | ||
| switch data.SubjectType { | ||
| // Currently, it is not possible to generate a link to the evidence tab for packages in the Artifactory UI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not ok with merging this comment on an open source.
| } | ||
|
|
||
| func generateReleaseBundleEvidenceUrl(data EvidenceSummaryData, section summarySection) (string, error) { | ||
| if data.ReleaseBundleName == "" || data.ReleaseBundleVersion == "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain this use case? when do we find release bundle type without release bundle name and release bundle version
| urlStr := fmt.Sprintf(releaseBundleEvidenceFormat, | ||
| StaticMarkdownConfig.GetPlatformUrl(), | ||
| data.ReleaseBundleName, | ||
| data.RepoKey, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the repokey in this case?
-release-bundle-v2?
| ReleaseBundleName string `json:"releaseBundleName"` | ||
| ReleaseBundleVersion string `json:"releaseBundleVersion"` | ||
| RepoKey string `json:"repoKey"` | ||
| CreatedAt time.Time `json:"createdAt"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CreatedBy? ProviderId?
|
|
||
| const evidenceHeaderSize = 3 | ||
|
|
||
| type EvidenceSummaryData struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to have it here?
It creates decoupling each time we will want to add a field we will have to go here as well.
Description
Add Summary Markdown Table for Create Evidence Command
This PR is part of a series of three that enhances the documentation for the "create evidence" command by introducing a summary markdown table.
jfrog-cli PR: jfrog/jfrog-cli#3042
jfrog-cli-artifactory PR: jfrog/jfrog-cli-artifactory#112
Summary
This addition aims to improve the user experience by providing a clear and concise overview of the evidence being created. The markdown table includes the following columns:
Evidence Subject: Links to the relevant evidence files, allowing users to easily access them.
Evidence Type: Specifies the type of evidence being recorded (e.g., in-toto).
Verification Status: Indicates whether the evidence has been verified, complete with visual status indicators (e.g., ✅ Verified).
Example Output
When the create evidence command is executed, users will see a collapsible section that looks like this:
🔎 Evidence