Skip to content

🚀 A GitHub Action to compute the difference in permissions changes for Hasura with the Metadelta tool.

Notifications You must be signed in to change notification settings

InvariantClub/metadelta-github-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Metadelta GitHub Action

This allows you to compute a diff of your Hasura permissions using Metadelta.

The result will be a link on your pull-request to the Metadelta UI, that will download the diff as an artifact from GitHub and allow you to view the permission changes in a convenient UI.

Requirements

Note that the GitHub API requires a private access token for accessing artifacts, which you need to provide to the UI on the settings page: Metadelta - Settings.

Because of this, this Action works for both private and public repos.

Usage

Add the following workflow:

jobs:
  compute-diff:
    permissions:
      # To upload artifacts
      contents: write
      # To write a comment on the PR
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
      - uses: InvariantClub/metadelta-github-action@v1.2
        with:
          # Repo-relative path to the hasura metadata folder.
          hasura_path: hasura/metadata

About

🚀 A GitHub Action to compute the difference in permissions changes for Hasura with the Metadelta tool.

Topics

Resources

Stars

Watchers

Forks