-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
054da93
commit d015a98
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
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"} | ||
} |