ci/static-checks: install opa

Make open-policy-agent available for static checks as prerequisite for rego checks.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer
2025-06-11 12:56:48 +02:00
parent 5baea34fff
commit 71796f7b12
3 changed files with 49 additions and 0 deletions

View File

@@ -123,6 +123,10 @@ jobs:
- name: Install system dependencies
run: |
sudo apt-get update && sudo apt-get -y install moreutils hunspell hunspell-en-gb hunspell-en-us pandoc
- name: Install open-policy-agent
run: |
cd "${GOPATH}/src/github.com/${{ github.repository }}"
./tests/install_opa.sh
- name: Run check
run: |
export PATH="${PATH}:${GOPATH}/bin"