Skip to content

Commit 98484a5

Browse files
authored
Fix build failure (#256)
- No point in fixing the Kafka Authorizer build as it's a deprecated module. - Remove custom OPA download script and use setup-opa - Use latest Go and latest OPA versions Signed-off-by: Anders Eknert <[email protected]>
1 parent b3e3986 commit 98484a5

File tree

3 files changed

+8
-42
lines changed

3 files changed

+8
-42
lines changed

.github/workflows/build.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,23 @@ on:
99
jobs:
1010
build:
1111
name: Build
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
steps:
1414
- name: Check out code
1515
uses: actions/checkout@v4
1616

1717
- name: Install Go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: '^1.15.5'
20+
go-version: '^1.22.5'
2121

2222
- name: Set up Docker Buildx
2323
uses: docker/setup-buildx-action@v3
2424

2525
- name: Install OPA
26-
run: ./build/install-opa.sh
26+
uses: open-policy-agent/setup-opa@v2
27+
with:
28+
version: v0.66.0
2729

2830
- name: Make build
2931
run: PATH=$PATH:$PWD:/home/runner/.local/bin make build

build/install-opa.sh

-39
This file was deleted.

kafka_authorizer/Makefile renamed to kafka_authorizer/Makefile.old

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Since this is a deprecated contrib module, this is not built as part of the main
2+
# build process, and this file is here only for historical purposes.
3+
14
VERSION := $(shell ./scripts/get-version.sh)
25
REPOSITORY := openpolicyagent/demo-kafka
36

0 commit comments

Comments
 (0)