Skip to content

Grype Severity-based CI enforcement - #326

Draft
SharkChar0255 wants to merge 2 commits into
mainfrom
feature/grype-ci-enforcement
Draft

Grype Severity-based CI enforcement#326
SharkChar0255 wants to merge 2 commits into
mainfrom
feature/grype-ci-enforcement

Conversation

@SharkChar0255

@SharkChar0255 SharkChar0255 commented Aug 11, 2026

Copy link
Copy Markdown

Summary

This PR serves to update Grype's Enforcement to be Severity Based. At current, Grype is configured in such a way to NOT fail the CI job when vulnerabilities are identified.

As Grype supports a severity-based build enforcement, I intend to use that opportunity to extend the existing implementation from just vulnerability detection and reporting towards enforcement against detected vulnerabilities.

This change will make use of Grype's configuration options to fail the CI job when vulnerabilities are identified at a certain severity level.

This way, lower-severity findings can still be reported, but not fail CI checks, and higher-severity findings can halt CI in order to be tended to before merges. In doing this, we can extend the security control of Grype and strengthen AutoAudits overall security during CI.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Documentation
  • CI/CD / infrastructure
  • Security

Affected Components

  • /backend-api
  • /frontend
  • /engine (collectors / policies)
  • /security
  • /infrastructure
  • /.github/workflows
  • /docs

Motivation

The motivation behind the change is to strengthen the existing vulnerability scanning workflow and improve security enforcement overall.

Planner Task

Testing Done

  • Unit tests pass locally
  • Tested manually — describe how:
  • No tests required — explain why: The testing of this change is done solely by observing current Grype findings upon implementation.

Security Considerations

As of current stage, no notable impacts on security.

Breaking Changes

  • No breaking changes
  • Yes — describe below:

Rollback Plan

  • Revert commit is sufficient
  • Requires additional steps — describe below:

Checklist

  • Code follows project conventions
  • No secrets, credentials, or tokens committed
  • Relevant documentation updated (if applicable)
  • CI/CD workflows pass on this branch
  • PR is focused on one thing

@github-actions

Copy link
Copy Markdown
Contributor

Preview Environment

A preview environment can be spun up on demand for this PR.

Action Label Includes
Spin up preview deploy-preview Frontend, backend, database, Redis, OPA, worker
Spin up preview with M365 deploy-preview-m365 Everything above + PowerShell service for Exchange/Teams scan testing
Tear down preview teardown-preview Stops the environment early

The environment will also be torn down automatically when the PR is closed or merged.
Preview URLs will appear in a follow-up comment once the deploy completes (~5–8 min).
M365 scans require real tenant credentials added through the frontend UI.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

CI: Backend API

Job Result
Security analysis (CodeQL + Bandit) failure
Lint success

One or more checks failed. View logs

@SharkChar0255 SharkChar0255 changed the title Prototype: Grype Severity-based CI enforcement Grype Severity-based CI enforcement Aug 21, 2026
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.

1 participant