Skip to content

cerbos/cerbos-setup-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

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

About

A GitHub action to setup Cerbos and Cerbosctl binaries

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 5