Skip to content

Commit

Permalink
add new rego files
Browse files Browse the repository at this point in the history
  • Loading branch information
furi0us333 committed Jul 17, 2024
1 parent 7cdce5e commit 4275b57
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions all_crit_no_vuln.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# METADATA
# title: All Critical (except Software Vulnerability)
# description: |
# Blocks Critical issues (except software vulnerabilities)
package policy.v1

import data.phylum.domain
import data.phylum.level
import rego.v1

# METADATA
# title: Critical issue
deny contains issue if {
some issue in data.issues
issue.domain != domain.VULNERABILITY
issue.severity == level.CRITICAL
}
14 changes: 14 additions & 0 deletions suspicious_ip.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# METADATA
# title: Suspicious IP References
# description: |
# Block packages containing suspicious IP addresses
package policy.v1

import rego.v1

# METADATA
# title: Suspicious IP reference
deny contains issue if {
some issue in data.issues
issue.tag == "CM0001"
}

0 comments on commit 4275b57

Please sign in to comment.