Update bitnami/kubectl:1.31 Docker digest to 96ef4d3 #547
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
name: Test the rego | |
on: [push] | |
jobs: | |
test-rego: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Get OPA | |
run: | | |
wget --quiet -O /tmp/opa https://github.com/open-policy-agent/opa/releases/download/v0.28.0/opa_linux_amd64 | |
chmod +x /tmp/opa | |
- name: Test | |
run: /tmp/opa test *.rego -v --explain full | |
- name: Coverage | |
run: /tmp/opa test --coverage --format=json *.rego |