Skip to content

Commit 903335d

Browse files
authored
security(ci): skip fork OpenTofu workflows
Do not invoke OpenTofu CI for fork pull requests.
1 parent 4bffb0c commit 903335d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/opentofu.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ permissions:
1515

1616
jobs:
1717
opentofu:
18+
if: >-
19+
github.event_name != 'pull_request' ||
20+
github.event.pull_request.head.repo.full_name == github.repository
1821
uses: makeitworkcloud/shared-workflows/.github/workflows/opentofu.yml@main
19-
with:
20-
# Native tfroot-runner scale set in kustomize-cluster/workloads/arc.
21-
# The runner pod IS the tfroot-runner image — no nested container.
22-
runs-on: arc-tf
23-
setup-ssh: true
24-
secrets:
25-
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
26-
SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }}

0 commit comments

Comments
 (0)