OPA in github workflows #264
Unanswered
javixeneize
asked this question in
OPA and Rego
Replies: 1 comment 9 replies
-
You can use the name: Run OPA Tests
on: [push]
jobs:
Run-OPA-Tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup OPA
uses: open-policy-agent/setup-opa@v1
with:
version: latest
- name: Run OPA Tests
run: opa test tests/*.rego -v Note that this won't work with |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
What is the best way to validate a JSON against an OPA policy in a github workflow? It would be the equivalent to run
opa run -s mypolicy.rego
Is there any existing github action to use in workflows to run opa? If not, this might be a good addition
Thanks
Beta Was this translation helpful? Give feedback.
All reactions