A GitHub Action to validate Cedar authorization policies.
This action creates annotations showing the location of any issues in your policy source code.
You can see an example implementation of this Action here: https://github.com/common-fate/cedar-github-actions-testing-example.
name: 'Test'
on: [push]
jobs:
cedar:
name: Cedar
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Policies
uses: common-fate/cedar-validate-action@v1
with:
schema-file: ./example.cedarschema.json
policy-files: '**/*.cedar'
This action currently supports Cedar v3 and supports the JSON schema format.
Let us know if you'd like to see support for Cedar v2 or the human-readable schema format.