/setup-odm

Sets up OPA Dependency Manager in your GitHub Actions workflow

Primary LanguageTypeScriptMIT LicenseMIT

Setup OPA Dependency Manager (ODM) GitHub Action

GitHub action to configure ODM in your GitHub Actions workflow.

Basic Usage

Here we see a simple template that checks out the repository code, installs the latest ODM, runs all Rego tests, and then builds a bundle.

name: Test and build
on: [push]
jobs:
  Run-OPA-Tests:
    runs-on: ubuntu-latest
    steps:
    - name: Check out repository code
      uses: actions/checkout@v3

    - name: Setup OPA
      uses: open-policy-agent/setup-opa@v2

    - name: Setup ODM
      uses: johanfylling/setup-odm@v1

    - name: Run Tests
      run: odm test -v

    - name: Build Bundle
      run: odm build -v