Skip to content

opa-policy-sync

Actions
A GitHub action that syncs OPA policies
0.1.0
Latest
Star (1)

Open Policy Agent (OPA) Policy Sync Action

GitHub Super-Linter CI Check dist/ CodeQL Coverage

A GitHub action that syncs REGO policies from Git to an OPA Server

Usage

Example workflow

This example updates policies from a git repository to an Open Policy Agent (OPA) Server.

name: Policy validation using OPA
on: [ push, pull_request ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@latest
      - name: Sync policy from git to Open Policy Agent (OPA)
        uses: OpsVerseIO/opa-policy-sync@0.1.0
        with:
          opaServerUrl: "https://opa.example.com"
          opaServerAuthToken: ${{ secrets.OPA_SERVER_AUTH_TOKEN }}
          opaPoliciesPath: "./policies"
          recurseDirs: true
          skipTlsValidation: true # Skip TLS validation (Optional)

Inputs

Input Description
opaServerUrl Open Policy Agent (OPA) Server address (with protocol)
opaServerAuthToken Open Policy Agent (OPA) Auth token
opaPoliciesPath Path to REGO Policy directory
recurseDirs Whether to recursively traverse opaPoliciesPath (default = true)
skipTlsValidation Skip TLS validation. Get the data from OPA by ignoring the certificate (default = false)

opa-policy-sync is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A GitHub action that syncs OPA policies
0.1.0
Latest

opa-policy-sync is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.