Skip to content

Cerbos Compile Action

Actions
Compile and test Cerbos policies
v1.8.2
Latest
Star (6)

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

Development

Prerequisites

You'll need to install

  • Node.js, matching the version specified in our .node-version file

    • A version manager that supports this file is recommended, for example n. Note that nvm does not.
  • pnpm, matching the version specified in our package.json file

    • After installing Node.js, you can enable Corepack to transparently install the correct pnpm version:
      $ corepack enable

Build

pnpm run all

Cerbos Compile Action 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

Compile and test Cerbos policies
v1.8.2
Latest

Cerbos Compile Action 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.