From 5de883df75ee761ed24ac19e859b643554f4c3b7 Mon Sep 17 00:00:00 2001 From: Simon Templer Date: Tue, 25 Jun 2024 17:47:00 +0200 Subject: [PATCH] feat(scan-images): support passing in environment to use --- .github/workflows/scan-images.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/scan-images.yml b/.github/workflows/scan-images.yml index ed6374c..929c966 100644 --- a/.github/workflows/scan-images.yml +++ b/.github/workflows/scan-images.yml @@ -35,6 +35,10 @@ on: type: string required: false default: '' + environment: + description: 'GitHub repository environment to use (to access variables)' + type: string + default: '' secrets: # GH_PAT: # required: true @@ -52,6 +56,7 @@ on: jobs: scan: runs-on: ubuntu-latest + environment: ${{ inputs.environment }} strategy: fail-fast: false # scan all images