Remove broken policies merged into dev #465
Workflow file for this run
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: Terraform OPA Policy Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - 'inputs/**' | |
| - 'policies/**' | |
| - 'scripts/**' | |
| - '.github/workflows/**' | |
| jobs: | |
| policy_check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| - name: Install OPA | |
| run: | | |
| curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64_static | |
| chmod +x opa | |
| sudo mv opa /usr/local/bin/opa | |
| - name: Set up plugin cache config | |
| run: | | |
| bash scripts/auto_test/cache_setup.sh | |
| - name: Run policy checks (Terraform + OPA) | |
| run: | | |
| python3 scripts/auto_test/auto_test.py \ | |
| --inputs inputs/gcp \ | |
| --policies policies/gcp | |
| --verbose |