Configurable `opa` version on github-actions

Open Beginner friendly
#221 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
github-actions
Domain
ci-cd

Research direction

Start with .github/workflows/reusable-test-policy-rego.yml and compare it with the gatekeeper-policy-template workflow at .github/workflows/test.yml#L8. Expose an opa-version input with a sane default, then verify the reusable workflow can select the requested version while retaining the default behavior.

Written by the indexing model from the issue text.

Description

help wanted kind/tech-debt status/help wanted

Some rego policies are currently being built with opa 0.X versions, meanwhile others are built with 1.X.

The gatekeeper-policy-template currently is trying to use opa 1.X, but the github-actions don't allow for it. See here:
https://github.com/kubewarden/gatekeeper-policy-template/blob/main/.github/workflows/test.yml#L8

Acceptance criteria
  • Expose the opa-version in the reusable-test-policy-rego.yml so we can set it. Provide a sane default.
Dominant language
Shell
Stars
4
Forks
11
Avg merge
3h 41m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from kubewarden/github-actions

All issues in kubewarden/github-actions

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.