From 396824c7152851320d4676ad5b67557d40ea9368 Mon Sep 17 00:00:00 2001 From: Maqsood Ahmad Date: Mon, 7 Jul 2025 21:11:47 +0530 Subject: [PATCH] ci(MODULES-11557): add Twingate setup step to GitHub Actions workflow Adds the Twingate installation step in `.github/workflows/...` using `twingate/github-action@v1`. The action uses the `${{ secrets.TWINGATE_KEY }}` to establish secure access to internal resources. This enables the workflow to access protected infrastructure during CI runs. --- .github/workflows/ci.yml | 5 +++++ .github/workflows/nightly.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78ef6531..4247e204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,13 @@ jobs: env: PUPPET_GEM_VERSION: '~> 7.24' FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? + TWINGATE_PUBLIC_REPO_KEY: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }} steps: + - name: "Install Twingate" + uses: "twingate/github-action@v1" + with: + service-key: ${{ env.TWINGATE_PUBLIC_REPO_KEY }} - name: "Checkout" uses: "actions/checkout@v3" diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 03a4db54..25480b53 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -45,8 +45,13 @@ jobs: env: PUPPET_GEM_VERSION: '~> 7.24' FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' # why is this set? + TWINGATE_PUBLIC_REPO_KEY: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }} steps: + - name: "Install Twingate" + uses: "twingate/github-action@v1" + with: + service-key: ${{ env.TWINGATE_PUBLIC_REPO_KEY }} - name: "Checkout" uses: "actions/checkout@v3"