Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OPA version #1

Merged
merged 1 commit into from Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .dockerignore
@@ -0,0 +1,6 @@
.git
.gitignore
.editorconfig
**/.idea
**/*.iml
**/build
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -10,7 +10,8 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Release
uses: actions/create-release@v1
env:
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
**/.idea
**/*.iml
**/build
**/dist
.DS_Store
*.tar
*.gz
/bin
7 changes: 5 additions & 2 deletions Dockerfile
@@ -1,6 +1,7 @@
FROM golang:1.13.7-stretch
FROM golang:1.19.3-bullseye

ENV OPA_VERSION=v0.18.0
# https://github.com/open-policy-agent/opa/releases
ENV OPA_VERSION=v0.46.1

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
Expand All @@ -15,6 +16,8 @@ RUN mkdir -p /tmp/opa \
&& chmod +x /usr/local/bin/opa \
&& rm -rf /tmp/opa

RUN opa version

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

Expand Down
3 changes: 1 addition & 2 deletions README.md
@@ -1,5 +1,4 @@
action-opa
==========
# action-opa

[![](https://github.com/b4b4r07/action-opa/workflows/release/badge.svg)](https://github.com/b4b4r07/action-opa/releases)

Expand Down
4 changes: 2 additions & 2 deletions action.yml
@@ -1,5 +1,5 @@
name: 'opa'
description: 'Run opa test command'
description: 'Run OPA test command'
inputs:
path:
description: 'Path to directory where rego files are located'
Expand All @@ -15,7 +15,7 @@ inputs:
default: ''
outputs:
result:
description: 'Outputs of opa command'
description: 'Outputs of OPA command'
runs:
using: 'docker'
image: 'Dockerfile'