From 04cf503f731c3ea94a7f7281108266daeb669249 Mon Sep 17 00:00:00 2001 From: James Reeve Date: Fri, 22 Sep 2023 14:44:38 -0400 Subject: [PATCH] test --- .github/workflows/release.yml | 64 +++++++++++++++++------------------ 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b9fe1b..3734f30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -162,38 +162,38 @@ jobs: # echo "cache-to=type=gha,mode=max" >> $GITHUB_OUTPUT fi - - name: Build and push image to scan - if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }} - uses: docker/build-push-action@v5 - with: - # If your Dockerfile is not present in the root directory - # change it to the correct subdirectory name - context: ${{ inputs.docker_context }} - file: ${{ inputs.docker_file }} - target: ${{ inputs.docker_target }} - push: true - tags: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} - outputs: type=oci - labels: ${{ steps.meta.outputs.labels }} - cache-from: ${{ steps.should-cache.outputs.cache-from }} - cache-to: ${{ steps.should-cache.outputs.cache-to }} - secrets: | - "oban_key_fingerprint=${{ secrets.OBAN_KEY_FINGERPRINT }}" - "oban_license_key=${{ secrets.OBAN_LICENSE_KEY }}" - "IBM_CLOUD_API_KEY=${{ secrets.IBM_CLOUD_API_KEY }}" - ${{ inputs.docker_secrets }} - build-args: |- - SN_GITHUB_NPM_TOKEN=${{ secrets.NPM_TOKEN }} - SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com - - - name: Scan image - if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }} - uses: ibm-skills-network/action-scan-container-image@main - with: - image: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} - travis_api_token: ${{ secrets.TRAVIS_API_TOKEN }} - image_scan_result_cos_api_token: ${{ secrets.CONTAINER_IMAGE_SCAN_RESULT_COS_API_KEY }} - fail_if_overdue: ${{ inputs.scan_fail_if_overdue }} + # - name: Build and push image to scan + # if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }} + # uses: docker/build-push-action@v5 + # with: + # # If your Dockerfile is not present in the root directory + # # change it to the correct subdirectory name + # context: ${{ inputs.docker_context }} + # file: ${{ inputs.docker_file }} + # target: ${{ inputs.docker_target }} + # push: true + # tags: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} + # outputs: type=oci + # labels: ${{ steps.meta.outputs.labels }} + # cache-from: ${{ steps.should-cache.outputs.cache-from }} + # cache-to: ${{ steps.should-cache.outputs.cache-to }} + # secrets: | + # "oban_key_fingerprint=${{ secrets.OBAN_KEY_FINGERPRINT }}" + # "oban_license_key=${{ secrets.OBAN_LICENSE_KEY }}" + # "IBM_CLOUD_API_KEY=${{ secrets.IBM_CLOUD_API_KEY }}" + # ${{ inputs.docker_secrets }} + # build-args: |- + # SN_GITHUB_NPM_TOKEN=${{ secrets.NPM_TOKEN }} + # SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com + # + # - name: Scan image + # if: ${{ inputs.scan_image_enabled && ( github.ref_type != 'tag' || steps.check-ref.outputs.has_alpha == 'false' ) }} + # uses: ibm-skills-network/action-scan-container-image@main + # with: + # image: ${{ inputs.image }}:scan-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} + # travis_api_token: ${{ secrets.TRAVIS_API_TOKEN }} + # image_scan_result_cos_api_token: ${{ secrets.CONTAINER_IMAGE_SCAN_RESULT_COS_API_KEY }} + # fail_if_overdue: ${{ inputs.scan_fail_if_overdue }} - name: Build and push id: build-push