From feabf6732b92c620dd67ad5f092f791afeb2780d Mon Sep 17 00:00:00 2001 From: Jayson Grace Date: Thu, 7 May 2026 22:02:10 -0600 Subject: [PATCH] ci: conditionally set environment for terratest jobs based on actor and fork status **Changed:** - Updated environment assignment for 'net' and 'instance-factory' jobs to set the environment to empty when the actor is 'l50' and the PR is not from a fork, otherwise use 'terratest' - .github/workflows/terratest.yaml --- .github/workflows/terratest.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terratest.yaml b/.github/workflows/terratest.yaml index 80b04a9a..29b0ea7d 100644 --- a/.github/workflows/terratest.yaml +++ b/.github/workflows/terratest.yaml @@ -104,7 +104,7 @@ jobs: needs: [detect-changes, semaphore] if: needs.detect-changes.outputs.net == 'true' runs-on: ubuntu-latest - environment: terratest + environment: ${{ (github.actor == 'l50' && github.event.pull_request.head.repo.fork != true) && '' || 'terratest' }} permissions: id-token: write contents: read @@ -171,7 +171,7 @@ jobs: needs: [detect-changes, semaphore] if: needs.detect-changes.outputs.instance-factory == 'true' runs-on: ubuntu-latest - environment: terratest + environment: ${{ (github.actor == 'l50' && github.event.pull_request.head.repo.fork != true) && '' || 'terratest' }} permissions: id-token: write contents: read