From 74992c78c7cf5c8013bf76950f6ed501470c0504 Mon Sep 17 00:00:00 2001 From: tylertitsworth Date: Tue, 9 Jul 2024 14:25:03 -0700 Subject: [PATCH] use downcase method --- .github/workflows/reuse-container-ci.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/reuse-container-ci.yaml b/.github/workflows/reuse-container-ci.yaml index e05d2c880..36ae736de 100644 --- a/.github/workflows/reuse-container-ci.yaml +++ b/.github/workflows/reuse-container-ci.yaml @@ -129,6 +129,8 @@ jobs: needs: [setup-scan] if: ${{ !inputs.no_build && github.event_name == 'pull_request' }} runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }} + env: + GROUP_DIR: ${{ inputs.group_dir }} strategy: matrix: container: ${{ fromJSON(needs.setup-scan.outputs.matrix) }} @@ -144,29 +146,25 @@ jobs: registry: ${{ secrets.REGISTRY }} username: ${{ secrets.REGISTRY_USER }} password: ${{ secrets.REGISTRY_TOKEN }} + - name: Downcase Group Dir + run: echo "group_dir=${GROUP_DIR,,}" >> ${GITHUB_ENV} - name: Pull Image - run: docker pull ${{ secrets.REGISTRY }}/${GROUP_DIR,,}:${{ matrix.container }} + run: docker pull ${{ secrets.REGISTRY }}/${{ env.group_dir }}}:${{ matrix.container }} env: GROUP_DIR: ${{ inputs.group_dir }} - name: Scan Container uses: intel/ai-containers/.github/scan@main with: - image-ref: ${{ secrets.REGISTRY }}/${GROUP_DIR,,}:${{ matrix.container }} - output: ${{ matrix.container }}-${GROUP_DIR,,}-scan.sarif - env: - GROUP_DIR: ${{ inputs.group_dir }} + image-ref: ${{ secrets.REGISTRY }}/${{ env.group_dir }}:${{ matrix.container }} + output: ${{ matrix.container }}-${{ env.group_dir }}-scan.sarif - name: Cleanup if: always() run: docker rmi -f ${{ secrets.REGISTRY }}/${GROUP_DIR,,}:${{ matrix.container }} - env: - GROUP_DIR: ${{ inputs.group_dir }} - uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 with: sarif_file: '${{ matrix.container }}-${GROUP_DIR,,}-scan.sarif' category: '${{ matrix.container }}' continue-on-error: true - env: - GROUP_DIR: ${{ inputs.group_dir }} #################################################################################################### # Generic Test Runner ####################################################################################################