GithubHelp home page GithubHelp logo

authorizer-subgraph's Introduction

Subgraph Template

This template includes a general setup for getting started with subgraph development with template support for handling subgraphs which need to be deployed to a number of different networks.

Automatic deploys

Through Github actions new versions of the subgraph can be automatically deployed once they are merged into the master and staging branches.

Setup

In the settings page for your repository, open the secrets tab and create a secret with the name GRAPH_ACCESS_TOKEN. Paste in the access token from https://thegraph.com/explorer/dashboard as it's value

In .github/graph.yaml and .github/graph-staging.yaml update the value of the GRAPH_SUBGRAPH_NAME environment variable with the name of your subgraphs. It's recommended to add a -staging suffix to the name in graph-staging.yaml. Both these subgraphs must already exist, if not you can create them on your Graph Dashboard

Security

Note that anyone with write access to this repository will be able to push new versions of subgraphs to any subgraph owned by the repository owner. Do not give write access to untrusted people if using automatic deploys.

To avoid this security issue you can set up an environment within the repositories settings page which will hold the value of GRAPH_ACCESS_TOKEN. This will allow you to review and approve any action runs which will have access to this.

authorizer-subgraph's People

Contributors

nventuro avatar tomafrench avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.