A GitHub action to upload Cerbos policies to Cerbos Hub stores.
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:
This action automatically installs cerbosctl if it doesn't already exist or if the installed version (via cerbos-setup-action) doesn't match the specified version.
- name: Upload cerbos policies
uses: cerbos/cerbos-store-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
store_id: ${{ secrets.CERBOS_HUB_STORE_ID }}
client_id: ${{ secrets.CERBOS_HUB_CLIENT_ID }}
client_secret: ${{ secrets.CERBOS_HUB_CLIENT_SECRET }}
subdir: policies # optional subdirectory of Cerbos policies- name: Upload cerbos policies
uses: cerbos/cerbos-store-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
store_id: ${{ secrets.CERBOS_HUB_STORE_ID }}
client_id: ${{ secrets.CERBOS_HUB_CLIENT_ID }}
client_secret: ${{ secrets.CERBOS_HUB_CLIENT_SECRET }}
from_revision: main
to_revision: HEAD
subdir: policies # optional subdirectory of Cerbos policiesYou'll need to install
-
Node.js, matching the version specified in our .node-version file
-
pnpm, matching the version specified in our package.json file
- After installing Node.js, you can enable Corepack to transparently install the correct
pnpmversion:$ corepack enable
- After installing Node.js, you can enable Corepack to transparently install the correct
pnpm run build