Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/authzed/action-spicedb-validate

GitHub Action for validating your SpiceDB schema
https://github.com/authzed/action-spicedb-validate

authzed fine-grained-access-control fine-grained-authorization github-actions linter spicedb zanzibar

Last synced: 12 days ago
JSON representation

GitHub Action for validating your SpiceDB schema

Lists

README

        

# SpiceDB Validate GitHub Action

[![Docs](https://img.shields.io/badge/docs-authzed.com-%234B4B6C "Authzed Documentation")](https://docs.authzed.com)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg "Apache 2.0 License")](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Build Status](https://github.com/authzed/action-spicedb-validate/workflows/test/badge.svg "GitHub Actions")](https://github.com/authzed/action-spicedb-validate/actions)
[![Discord Server](https://img.shields.io/discord/844600078504951838?color=7289da&logo=discord "Discord Server")](https://discord.gg/jTysUaxXzM)
[![Twitter](https://img.shields.io/twitter/follow/authzed?color=%23179CF0&logo=twitter&style=flat-square "@authzed on Twitter")](https://twitter.com/authzed)

This project is a [GitHub Action] that runs the [zed] `validate` command for a SpiceDB schema and test data.

A compatible file can be produced by downloading from the [Authzed Playground].

[zed]: https://github.com/authzed/zed
[GitHub Action]: https://github.com/features/actions
[Authzed Playground]: https://play.authzed.com

## Usage

Add the following any workflow:

```yaml
steps:
- uses: "authzed/action-spicedb-validate@v1"
with:
validationfile: "myschema.zaml"
```

See [test-schema.zaml] for an example of an input file.

[test-schema.zaml]: test-schema.zaml