Skip to content

Commit

Permalink
seperated gatorcli and opa install steps
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybommana committed Jun 7, 2024
1 parent 3dfafbd commit 121b140
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-guardrailpolicies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: install gator cli & opa binaries
- name: Install opa binary
run: |
go install github.com/open-policy-agent/gatekeeper/v3/cmd/gator@master
curl -L -o opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64
chmod 755 opa; cp opa /usr/local/bin/
- name: Install gator cli
run: |
go install github.com/open-policy-agent/gatekeeper/v3/cmd/gator@master
- name: run opa & guardrails policies test.sh
run: |
export PATH=$PATH:/home/runner/go/bin; cd ${GITHUB_WORKSPACE}/pkg/operator/controllers/guardrails/policies; bash ./scripts/test.sh
Expand Down

0 comments on commit 121b140

Please sign in to comment.