Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Cerbos Compile Action

v1.4.0

Cerbos Compile Action

play

Cerbos Compile Action

Compile and test Cerbos policies

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Cerbos Compile Action

uses: cerbos/[email protected]

Learn more about this action in cerbos/cerbos-compile-action

Choose a version

Cerbos Compile Action

A GitHub action to validate Cerbos policies using the compiler and run policy tests if there are any.

Cerbos helps you super-charge your authorization implementation by writing context-aware access control policies for your application resources. Find out more about Cerbos using the following resources:

Usage

Use the cerbos-setup-action to install Cerbos binaries. Then use this action to validate and test your Cerbos policies. See the documentation for more information about how to compile policies and author policy tests.

- uses: actions/checkout@v2

- name: Setup Cerbos
  uses: cerbos/cerbos-setup-action@v1

- name: Compile with Cerbos
  uses: cerbos/cerbos-compile-action@v1
  with:
    policyDir: policies