Skip to content

Instantly share code, notes, and snippets.

@circa10a
Created September 18, 2020 01:45
Show Gist options
  • Save circa10a/4d942e4253ada516f5668ba7d4ce7ee4 to your computer and use it in GitHub Desktop.
Save circa10a/4d942e4253ada516f5668ba7d4ce7ee4 to your computer and use it in GitHub Desktop.
package docker.authz
default allow = false
allow {
not deny
}
deny {
builds_with_cache
}
builds_with_cache {
contains(input.Path, "build")
not contains(input.Path, "nocache=1")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment