From e42cc472f2e6ec4573adbd2d25e2e9a131a231b8 Mon Sep 17 00:00:00 2001 From: Qlebrun Date: Tue, 5 May 2026 10:46:34 +0200 Subject: [PATCH] chore: add runner type input for build image --- .github/workflows/build-image.yml | 6 +++++- .github/workflows/push-image-ghcr-to-ecr.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index c27e9083..c72cbff3 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -84,6 +84,10 @@ on: required: false type: string default: "CRITICAL,HIGH" + runner_type: + required: false + type: string + default: ubuntu-latest outputs: image-url: value: ${{ jobs.build-image.outputs.image-url }} @@ -92,7 +96,7 @@ on: jobs: build-image: - runs-on: ubuntu-latest + runs-on: ${{ inputs.runner_type }} permissions: actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status checks: write diff --git a/.github/workflows/push-image-ghcr-to-ecr.yml b/.github/workflows/push-image-ghcr-to-ecr.yml index d39d3add..788b3e18 100644 --- a/.github/workflows/push-image-ghcr-to-ecr.yml +++ b/.github/workflows/push-image-ghcr-to-ecr.yml @@ -34,10 +34,14 @@ on: required: false type: string default: "github_oidc_readonly" + runner_type: + required: false + type: string + default: ubuntu-latest jobs: push-image: - runs-on: ubuntu-latest + runs-on: ${{ inputs.runner_type }} permissions: contents: read id-token: write