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

Log result URL at the end of run #101

Merged
merged 2 commits into from
May 21, 2024
Merged

Log result URL at the end of run #101

merged 2 commits into from
May 21, 2024

Conversation

pbrisbin
Copy link
Member

@pbrisbin pbrisbin commented May 14, 2024

This link is already present in the CLI output and our build summary.
Both of these can be insufficient:

  1. The CLI output is not URI-encoded, and the characters used makes the
    link unclickable from build logs. A slow copy/paste is necessary.
  2. It's a common issue that looking at a particular build's logs is
    where users start, and information in the Summary is never seen
  3. The Summary content may not be present if the action is not
    configured with Wiz API access

So, logging it separately and URI-encoded should be a nice
quality-of-life improvement.


The difference between encoding (L8141) or not (L8138):

@pbrisbin pbrisbin changed the title pb/log url Log result URL at the end of run May 14, 2024
@pbrisbin pbrisbin marked this pull request as ready for review May 14, 2024 15:46
@pbrisbin pbrisbin requested review from a team and derek-ye and removed request for a team May 14, 2024 15:46
Copy link

@derek-ye derek-ye left a comment

Choose a reason for hiding this comment

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

cool, had no ideaencodeURIComponent had those flaws

pbrisbin added 2 commits May 21, 2024 08:30
This link is already present in the CLI output and our build summary.
Both of these can be insufficient:

1. The CLI output is not URI-encoded, and the characters used makes the
   link unclickable from build logs. A slow copy/paste is necessary.
2. It's a common issue that looking at a particular build's logs is
   where users start, and information in the Summary is never seen
3. The Summary content may not be present if the action is not
   configured with Wiz API access

So, logging it separately and URI-encoded should be a nice
quality-of-life improvement.
@pbrisbin pbrisbin enabled auto-merge (rebase) May 21, 2024 12:30
@pbrisbin pbrisbin merged commit 710e937 into main May 21, 2024
4 checks passed
@pbrisbin pbrisbin deleted the pb/log-url branch May 21, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants