Skip to content

Cerbos Setup Action

Actions
Sets up Cerbos and Cerbosctl binaries into PATH
v1
Latest
Star (4)

Cerbos Setup Action

A GitHub action to install Cerbos binaries (cerbos and cerbosctl) for use in workflows.

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

If version is not specified or set to latest, the action will download the latest Cerbos release.

Setup cerbos and cerbosctl binaries

steps:
  - name: Setup Cerbos
    uses: cerbos/cerbos-setup-action@v1
    with:
      github_token: <github_token>
      version: latest

Setup cerbos and cerbosctl binaries and show their versions

steps:
  - name: Setup Cerbos
    uses: cerbos/cerbos-setup-action@v1
    with:
      github_token: <github_token>
      version: latest
  
  - name: Show versions
    run: |
      cerbos --version
      cerbosctl version

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 build

Cerbos Setup 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

Sets up Cerbos and Cerbosctl binaries into PATH
v1
Latest

Cerbos Setup 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.