Skip to content

updates link display for first party scan results#1695

Merged
timbastin merged 1 commit intomainfrom
fix-link-in-first-party-scan-results
Feb 11, 2026
Merged

updates link display for first party scan results#1695
timbastin merged 1 commit intomainfrom
fix-link-in-first-party-scan-results

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented Feb 11, 2026

close #1607

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings February 11, 2026 14:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates how the DevGuard scanner displays the “code risks” link for first-party scan results by printing it as standalone output rather than as a wrapped table row.

Changes:

  • Remove the “Link” row from the results table output.
  • Print the code-risks URL after the table render using fmt.Printf.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +58 to +60
link := text.FgBlue.Sprint(fmt.Sprintf("%s/%s/refs/%s/code-risks/", webUI, assetName, slug.Make(assetVersionName)))
//wrappedLink := text.WrapText(link, rowLengthLimit)
fmt.Printf("See all code risks at:\n%s\n", link)
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

rowLengthLimit is meant to keep output within GitLab’s line-length constraints, but the link is now printed outside the table without wrapping, so long URLs can exceed the limit and get truncated in CI logs. Consider wrapping the printed URL (e.g., via text.WrapText or manual splitting) or otherwise ensuring the output respects rowLengthLimit.

Copilot uses AI. Check for mistakes.
Comment on lines +59 to +60
//wrappedLink := text.WrapText(link, rowLengthLimit)
fmt.Printf("See all code risks at:\n%s\n", link)
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

There’s commented-out code (//wrappedLink := ...) left behind. Please either remove it or re-enable it (if wrapping is still desired) to avoid accumulating dead code and to keep the intent clear.

Suggested change
//wrappedLink := text.WrapText(link, rowLengthLimit)
fmt.Printf("See all code risks at:\n%s\n", link)
wrappedLink := text.WrapText(link, rowLengthLimit)
fmt.Printf("See all code risks at:\n%s\n", wrappedLink)

Copilot uses AI. Check for mistakes.
@timbastin timbastin merged commit 919a1fd into main Feb 11, 2026
22 of 25 checks passed
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.

DevGuard Secret Scanning Job prints broken links

3 participants