[ACR] Backfill v0.0.5-alpha to ACR #385
This file contains hidden or 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 rego examples | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| permissions: {} | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup OPA | |
| uses: open-policy-agent/setup-opa@b2b258e089860efaadaaf71bf6e3aecb4a3eeff1 # 2.4.0 | |
| with: | |
| version: latest | |
| - name: Test | |
| run: | | |
| make test-rego | |
| - name: Verify constraint files | |
| shell: bash | |
| run: | | |
| ./scripts/diff_policy.sh |