Skip to content

feat: screenshot of a SARIF finding in GitHub code scanning (#13) - #14

Merged
predictor2718 merged 1 commit into
mainfrom
feat/code-scanning-screenshot
Oct 25, 2026
Merged

predictor2718 merged 1 commit into
mainfrom
feat/code-scanning-screenshot

Conversation

@predictor2718

Copy link
Copy Markdown
Member

Closes #13

Summary

  • static/screenshots/code-scanning-pr.png: the "Files changed" view of feat: let the agent run without prompts and add two MCP servers examples#1, taken without signing in. The diff of CLAUDE.md adds the never-ask line, and the code scanning annotation from cfgaudit (Error, CFG029) sits on line 5.
  • reports.go: the screenshot on the SARIF format. Screenshot gets a LinkText, so each figure says where it links (GitHub or GitLab).
  • templates/pages.html: uses LinkText.

The caption states what GitHub shows. The pull request has seven code scanning alerts, but GitHub annotates only changed lines. The six findings without a line number (in settings.json and .mcp.json) appear only in the Security tab, which needs write access; signed out it answers 404.

Test plan

  • Tests check the image is copied, and that the reports page has it and the "Open it on GitHub" link.
  • ./scripts/build.sh against v1.18.1; the SARIF section was checked in a browser.
  • go test ./..., golangci-lint run (0 issues).

AI assistance

Claude Code made the change, created the example repository and pull request, and took the screenshot.

@predictor2718
predictor2718 merged commit 0e95345 into main Oct 25, 2026
3 checks passed
@predictor2718
predictor2718 deleted the feat/code-scanning-screenshot branch October 25, 2026 18:45
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.

Reports page: screenshot of a SARIF finding in GitHub code scanning

1 participant