Integrating Torque with GitHub Actions

  • 31 October 2021
  • 0 replies

It is now possible to use GitHub Actions to automate sandbox lifecycle management. We currently provide the following workflows, which can be added as new custom workflows or as additions to existing ones:

To use workflows, make sure to set a Torque authentication token in the GitHub repo. You can easily generate a token using any of Torque’s built-in CI/CD tools. For illustration purposes, we’ll use Jenkins: 

  1. In Torque, go to Settings>Integrations>Jenkins>Connect>New Token.
  2. Copy the token and store it somewhere you’ll remember.
  3. In the GitHub repo, go to Settings>Secrets>new repository secret and set the token. Make sure the name of the token matches the token name in the workflow - “TORQUE_TOKEN” in our case:
  4. Next, add the desired workflow(s) as GitHub Actions:
    1. Open the appropriate Torque workflow’s README file and copy the example YAML code block.
    2. Open the desired GitHub repository.
    3. Click the Actions menu and add a new workflow or edit an existing one.
    4. In the workflow yaml, paste the workflow code block.
    5. Update the information in the code block according to the README’s Usage section.


“start sandbox” and “end sandbox” workflows defined to run when a pull request is created on the master branch:

name: CI
- master

“validate blueprint” workflow defined to run when a pull request is either created or pushed:​​​​​​

name: Validation
on: [push, pull_request]


0 replies

Be the first to reply!