Skip to content

Commit

Permalink
Update minimal_code.rego
Browse files Browse the repository at this point in the history
  • Loading branch information
furi0us333 authored Jul 3, 2024
1 parent 6fce5f0 commit 054da93
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions minimal_code.rego
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package policy
# METADATA

Check failure on line 1 in minimal_code.rego

View workflow job for this annotation

GitHub Actions / lint

Detached metadata annotation. To learn more, see: https://docs.styra.com/regal/rules/style/detached-metadata
# title: Minimal Code
# description: |
# Returns a violation if the package contains minimal code and is unlikley worth the security risk

package policy.v1

Check failure on line 6 in minimal_code.rego

View workflow job for this annotation

GitHub Actions / lint

File should be formatted with `opa fmt`. To learn more, see: https://docs.styra.com/regal/rules/style/opa-fmt

import rego.v1

# Returns a violation if the package contains minimal code and is unlikley worth the security risk
# METADATA
# scope: rule
# schemas:
# - data.issue: schema.issue
issue contains "Package contains minimal code" if {
data.issue.tag == "IE0027"
# Package contains minimal code
deny contains issue if {
some issue in data.issues
issue.tag == "IE0027"
}

0 comments on commit 054da93

Please sign in to comment.