Skip to main content

GitHub

Integrate GitHub with Torq to manage issues and repositories.

Updated over 2 weeks ago

GitHub is a software development service for hosting and version control.

Torq enables quick and easy integration with GitHub, so you can automate anything and everything within moments. Torq's public GitHub steps include:

  • Get Issue

  • Get File

  • Run GraphQL query

  • List Repositories

  • +30 more...

If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.

To trigger a Torq workflow based on events sent from GitHub, look here.

To use GitHub steps in Torq workflows, look here.

Use GitHub to Trigger Workflows in Torq

Step One: Create a GitHub Trigger Integration in Torq

  1. Add the Integration: Go to Build > Integrations > Triggers > GitHub and click Add Instance.

  2. Name the Integration: Give the integration a unique and meaningful name.

  3. (Optional) Add an Authentication Header: Click Add.

    1. Enter a name.

    2. Click Generate Random Secret or enter your own.

    3. Click Copy Secret to save it for later.

  4. Finalize: Click Add and Copy the generated endpoint. You will need the URL for the webhook.

Step Two: Generate a Webhook in GitHub

  1. Open Github: Navigate to Settings > Developer settings.

  2. Create a GitHub App: Click New GitHub App, enter your password, and then click Confirm to confirm access to your account.

  3. Register the GitHub App:

    1. Name: Enter a meaningful name.

    2. Homepage URL: Enter https://app.torq.io/.

    3. Webhook URL: Paste the Torq endpoint you generated earlier.

  4. Finalize: Click Create GitHub App.

Now that you've successfully created a GitHub trigger, you can build your first GitHub-initiated workflow!

In Torq, go to Build > Workflows > Create a Workflow > New Blank Workflow, and select the trigger type: Integrations > GitHub. Find your new trigger, and automate away!

Use GitHub Steps in a Torq Workflow

Step One: Generate a GitHub API Key

  1. Open Github: Navigate to Settings > Developer settings > GitHub Apps and select the app you created earlier.

  2. Create a Secret: Select the General tab and click Generate a new client secret in the Client secrets section.

  3. Finalize: Copy the client secret to save it for later.

Step Two: Create a GitHub Steps Integration in Torq

  1. Navigate to the Integration: Go to Build > Integrations > Steps > GitHub and click Add Instance.

  2. Configure the Integration:

    1. Give the integration a unique and meaningful name.

    2. Paste the GitHub secret that you copied earlier.

  3. Finalize: Click Add.

Templates

Now that you've added your integrations, check out these specially crafted templates by Torq's security experts. Visit Torq's template library for more.

Did this answer your question?