Skip to content

Commit 1e51290

Browse files
feat: allow to request static opa binary (#24)
## Describe your changes OPA releases statically built binaries. In the case of ARM64, it is the only option. The setup-opa/v2 action currently supports the option. ## Reminder: - When the PR is ready, be sure to run `npm run build` to compile into the distribution `/dist` folder, which is the source code that the Action uses. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a new input option to enable or disable the use of the static OPA CLI binary in the GitHub Action. The option defaults to disabled. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Carlos Rodriguez-Fernandez <[email protected]>
1 parent 1a64a86 commit 1e51290

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ inputs:
3838
description: "Version of OPA CLI to use. Default is 0.67.1."
3939
required: false
4040
default: "0.67.1"
41+
opa_static:
42+
description: "Whether to use the static binary. Default is false."
43+
required: false
44+
default: false
4145
indicate_source_message:
4246
description: Flag to comment the origins watermark (this repository) of the GitHub Action in the PR comment. Default of true.
4347
required: false
@@ -57,6 +61,7 @@ runs:
5761
uses: open-policy-agent/setup-opa@v2
5862
with:
5963
version: ${{ inputs.opa_version }}
64+
static: ${{ inputs.opa_static }}
6065

6166
- name: Run OPA Tests and Coverage
6267
id: opa-test-coverage

0 commit comments

Comments
 (0)