Skip to content

Commit a5e7554

Browse files
committed
Upgrade OPA and regal to latest versions
1 parent 6fa132c commit a5e7554

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

.github/actions/build-policies/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ runs:
1212
- name: Install Open Policy Agent
1313
uses: open-policy-agent/[email protected]
1414
with:
15-
version: 1.1.0
15+
# Keep in sync with the Dockerfile and policies/Makefile
16+
version: 1.8.0
1617

1718
- name: Build the policies
1819
run: make

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- name: Setup Regal
4242
uses: StyraInc/setup-regal@v1
4343
with:
44-
version: 0.29.2
44+
# Keep in sync with policies/Makefile
45+
version: 0.36.1
4546

4647
- name: Lint policies
4748
working-directory: ./policies

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ ARG DEBIAN_VERSION=12
1414
ARG DEBIAN_VERSION_NAME=bookworm
1515
ARG RUSTC_VERSION=1.89.0
1616
ARG NODEJS_VERSION=22.19.0
17-
ARG OPA_VERSION=1.1.0
17+
# Keep in sync with .github/actions/build-policies/action.yml and policies/Makefile
18+
ARG OPA_VERSION=1.8.0
1819
ARG CARGO_AUDITABLE_VERSION=0.7.0
1920

2021
##########################################

policies/.regal/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Please see LICENSE files in the repository root for full details.
55

66
rules:
7+
imports:
8+
unresolved-reference:
9+
level: ignore
710
style:
811
external-reference:
912
level: ignore

policies/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
# Set to 1 to run OPA through Docker
77
DOCKER := 0
88
PODMAN := 0
9-
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:1.1.0-debug
10-
REGAL_DOCKER_IMAGE := ghcr.io/styrainc/regal:0.31.0
9+
# Keep in sync with Dockerfile and .github/actions/build-policies/action.yml
10+
OPA_DOCKER_IMAGE := docker.io/openpolicyagent/opa:1.8.0-debug
11+
# Keep in sync with .github/workflows/ci.yaml
12+
REGAL_DOCKER_IMAGE := ghcr.io/styrainc/regal:0.36.1
1113

1214
INPUTS := \
1315
common/common.rego \

0 commit comments

Comments
 (0)