这是indexloc提供的服务,不要输入任何密码
Skip to content

Permify/permify-validate-action

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

Repository files navigation

Permify logo
Permify Schema Validate GitHub Action

Permify Licence  Permify Discord Channel 

This repository runs the permify validate command on the given schema (authorization model) and relationships (sample authorization data) and assertions (sample check queries and results).

Example Schema Validation YAML File

schema: >-
    entity user {}

    entity organization {

        relation admin @user
        relation member @user

        action create_repository = (admin or member)
        action delete = admin
    }

    entity repository {

        relation owner @user
        relation parent @organization

        action push = owner
        action read = (owner and (parent.admin and parent.member))
        action delete = (parent.member and (parent.admin or owner))
    }

relationships:
    - "organization:1#admin@user:1"
    - "organization:1#member@user:1"
    - "repository:1#owner@user:1"

assertions:
    - "can user:1 push repository:1": true
    - "can user:1 push repository:2": false
    - "can user:1 push repository:3": false

Usage

Add the action following your workflow:

  • With local file
steps:
- uses: "permify/permify-validate-action@v1"
  with:
    validationFile: "test.yaml"
  • With url
steps:
- uses: "permify/permify-validate-action@v1"
  with:
    validationFile: "https://gist.github.com/permify-bot/bb8f95acb64525d2a41688ae0a6f4274"

Permify is an open-source authorization service for creating and maintaining fine-grained authorizations accross your individual applications and services.

Community & Support

Join our Discord channel for issues, feature requests, feedbacks or anything else. We love to talk about authorization and access control ❤️

permify | Discord permify | Twitter permify | Linkedin

About

GitHub Action for validation your Permify schema (Authorization Model)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •