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