Skip to content

BCH 1033: More alert checks for vulnerabilities.#3

Merged
jonathandavies-CS merged 13 commits intomainfrom
feat/add-more-alert-checks
Sep 16, 2025
Merged

BCH 1033: More alert checks for vulnerabilities.#3
jonathandavies-CS merged 13 commits intomainfrom
feat/add-more-alert-checks

Conversation

@jonathandavies-CS
Copy link
Contributor

No description provided.

@ianmiell ianmiell requested a review from Copilot September 16, 2025 08:31
Copy link
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

This PR implements comprehensive vulnerability checking policies for security alerts. It adds new OPA policies to enforce governance rules around vulnerability management including patch availability, dismissal dates, dismissal counts, and authorization requirements.

Key changes:

  • Adds four new vulnerability policies with comprehensive test coverage
  • Restructures existing vulnerability count policies from legacy format to new structure
  • Updates example JSON files to match new input format with alerts array and security team members

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
policies/vulnerability_patch_available/ New policy to prevent dismissing vulnerabilities when patches are available
policies/vulnerability_dismissal_date/ New policy to limit age of dismissed vulnerabilities to 90 days
policies/vulnerability_dismissal_count/ New policy to limit total number of dismissed vulnerabilities to 10
policies/vulnerabilities_dismissed_by_security_team/ New policy requiring security team authorization for dismissals
policies/utils/time_ext/ Utility functions for working day calculations
policies/*_vulnerabilities_dismissal/ New time-based dismissal policies for critical/high/medium/low severity levels
policies/*_vulnerabilities_count/ Restructured count policies from legacy format
examples/ Updated JSON examples to match new input structure
Comments suppressed due to low confidence (2)

policies/vulnerability_dismissal_count/vulnerability_dimissal_count_test.rego:1

  • The function name contains a typo: 'dimissed' should be 'dismissed'.
package vulnerability_dismissal_count_test

policies/vulnerability_dismissal_count/vulnerability_dimissal_count_test.rego:1

  • The function name contains a typo: 'dimissed' should be 'dismissed'.
package vulnerability_dismissal_count_test

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

jonathandavies-CS and others added 6 commits September 16, 2025 13:46
…lities_dismissal.rego

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ount_test.rego

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…es_count_test.rego

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jonathandavies-CS jonathandavies-CS merged commit 52e1090 into main Sep 16, 2025
2 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.

2 participants