Skip to content

Commit

Permalink
Update obfuscated_code.rego
Browse files Browse the repository at this point in the history
  • Loading branch information
furi0us333 authored Jul 3, 2024
1 parent 054da93 commit d015a98
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions obfuscated_code.rego
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package policy
# METADATA
# title: Obfuscated Code
# description: |
# Returns a violation if the package contains obfuscated code

package policy.v1

Check failure on line 6 in obfuscated_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 obfuscated code
# METADATA
# scope: rule
# schemas:
# - data.issue: schema.issue
issue contains "Package contains obfuscated code" if {
data.issue.tag in {"HM0029", "HM0099", "HM0023", "IM0040", "IM0041"}
# Package contains obfuscated code
deny contains issue if {
some issue in data.issues
issue.tag in {"HM0029", "HM0099", "HM0023", "IM0040", "IM0041"}
}

0 comments on commit d015a98

Please sign in to comment.