Skip to content

ci(image-scan): upload Grype findings to code scanning - #147

Merged
spydisec merged 1 commit into
devfrom
ci/image-scan-sarif
Nov 16, 2026
Merged

spydisec merged 1 commit into
devfrom
ci/image-scan-sarif

Conversation

@spydisec

Copy link
Copy Markdown
Owner

The weekly Grype scan of ghcr.io/spydisec/threatcull:latest now uploads a SARIF report, so its findings show as code scanning alerts in the Security tab.

  • A first Grype run writes the SARIF report with fail-build: false, and upload-sarif sends it under the category grype-image.
  • The existing table scan still runs last and fails the job on a fixable high or critical CVE.
  • The job gains security-events: write.

Replaces #145: no second scanner and no extra image build.

Checked with a manual run of the workflow on this branch (see the comment below).

🤖 Generated with Claude Code

The weekly scan of the published image writes a SARIF report and uploads
it, so findings show as alerts in the Security tab. The table scan still
fails the job on a fixable high or critical CVE.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@spydisec spydisec added the ci CI and workflow changes label Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@spydisec

Copy link
Copy Markdown
Owner Author

Manual run on this branch: https://github.com/spydisec/threatcull/actions/runs/43793053235. Both Grype scans and the upload succeeded; code scanning recorded a grype-image analysis with 0 results.

@spydisec
spydisec merged commit 88217a4 into dev Nov 16, 2026
22 checks passed
@spydisec
spydisec deleted the ci/image-scan-sarif branch November 16, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI and workflow changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants