Skip to content

Commit

Permalink
Create runs_remote_code.rego
Browse files Browse the repository at this point in the history
  • Loading branch information
furi0us333 authored Jul 5, 2024
1 parent 93e2c3a commit ff3e8cb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions runs_remote_code.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# METADATA
# title: Runs Remote Code
# description: |
# Returns a violation if the package runs remote code

package policy.v1

Check failure on line 6 in runs_remote_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

# Runs remote code
deny contains issue if {
some issue in data.issues
issue.tag in {"CM0024", "MM0024", "HM0032"}
}

0 comments on commit ff3e8cb

Please sign in to comment.