From 3328a0897c8effbc4bd9e496baa491e79046f6d5 Mon Sep 17 00:00:00 2001 From: xnoto Date: Thu, 27 Aug 2026 23:09:05 -0600 Subject: [PATCH] feat: support OpenTofu job containers --- .github/workflows/opentofu.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/opentofu.yml b/.github/workflows/opentofu.yml index c291d3e..52d4de0 100644 --- a/.github/workflows/opentofu.yml +++ b/.github/workflows/opentofu.yml @@ -11,6 +11,10 @@ on: description: Runner label type: string default: arc-tf + container-image: + description: Optional container image for GitHub-hosted runners + type: string + default: "" setup-ssh: description: Whether to setup SSH keys type: boolean @@ -52,6 +56,7 @@ jobs: id-token: write pull-requests: write runs-on: ${{ inputs.runs-on }} + container: ${{ inputs.container-image || null }} steps: - name: Checkout id: checkout @@ -214,6 +219,7 @@ jobs: id-token: write pull-requests: write runs-on: ${{ inputs.runs-on }} + container: ${{ inputs.container-image || null }} if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository needs: [test] steps: @@ -305,6 +311,7 @@ jobs: contents: read id-token: write runs-on: ${{ inputs.runs-on }} + container: ${{ inputs.container-image || null }} if: github.event_name == 'push' && github.ref == 'refs/heads/main' needs: [test] steps: