Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.74 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.74 KB

cedar-validate-action

GitHub Super-Linter CI Check dist/ CodeQL Coverage

A GitHub Action to validate Cedar authorization policies.

This action creates annotations showing the location of any issues in your policy source code.

A screenshot showing annotations on a pull request file

You can see an example implementation of this Action here: https://github.com/common-fate/cedar-github-actions-testing-example.

Usage

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'

Limitations

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.