Skip to content

Commit

Permalink
Merge pull request #3 from nikpivkin/setup-opa-act
Browse files Browse the repository at this point in the history
ci: add setup-opa action
  • Loading branch information
simar7 authored Sep 18, 2023
2 parents ef2642c + a9f6d75 commit c0a30e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/actions/setup-opa/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Setup OPA CLI
description: Setup OPA CLI
runs:
using: composite
steps:
- name: Setup OPA
shell: bash
run: |
curl --retry 3 -L -o opa_linux_amd64_static https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static
curl -L -o checksum https://github.com/open-policy-agent/opa/releases/latest/download/opa_linux_amd64_static.sha256
sha256sum -c checksum
chmod 755 ./opa_linux_amd64_static
sudo mv ./opa_linux_amd64_static /usr/local/bin/opa

0 comments on commit c0a30e1

Please sign in to comment.