This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,35 +108,35 @@ jobs: | |
ecr_tagged_image: $BASE_IMAGE | ||
image_sign_inspect: 'true' | ||
|
||
# - name: Build VOL API image | ||
# if: github.event.review.state == 'APPROVED' | ||
# run: | | ||
# docker build -t ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG} \ | ||
# --build-arg DVSA_AWS_SHAREDCOREECR_ID=${{secrets.DVSA_AWS_SHAREDCOREECR_ID}} . | ||
- name: Build SelfServe image | ||
# if: github.event.review.state == 'APPROVED' | ||
run: | | ||
docker build -t ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG} \ | ||
--build-arg DVSA_AWS_SHAREDCOREECR_ID=${{secrets.DVSA_AWS_SHAREDCOREECR_ID}} . | ||
# - name: Snyk scan VOL API image | ||
# if: github.event.review.state == 'APPROVED' | ||
# id: scan-api-image | ||
# uses: snyk/actions/docker@master | ||
# env: | ||
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
# with: | ||
# image: ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG} | ||
# args: --file=dockerfile --severity-threshold=high | ||
# continue-on-error: true | ||
|
||
# - name: Configure AWS credentials on Non Production VOL ECR | ||
# if: github.event.review.state == 'APPROVED' | ||
# uses: aws-actions/[email protected] | ||
# with: | ||
# role-to-assume: ${{ secrets.VOL_AWS_ROLE_TOOLING_NONPROD }} | ||
# role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
# aws-region: ${{ vars.DVSA_AWS_REGION}} | ||
- name: Snyk scan SelfServe image | ||
# if: github.event.review.state == 'APPROVED' | ||
id: scan-api-image | ||
uses: snyk/actions/docker@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
image: ${VOL_NONPROD_TOOLING_REPO_URL}:${VOL_SSWEB_IMAGE_TAG} | ||
args: --file=dockerfile --severity-threshold=high | ||
continue-on-error: true | ||
|
||
# - name: Login to Non Production VOL ECR | ||
# if: github.event.review.state == 'APPROVED' | ||
# id: login-ecr-vol-tooling-non-prod | ||
# uses: aws-actions/[email protected] | ||
- name: Configure AWS credentials on Non Production VOL ECR | ||
# if: github.event.review.state == 'APPROVED' | ||
uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: ${{ secrets.VOL_AWS_ROLE_TOOLING_NONPROD }} | ||
role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
aws-region: ${{ vars.DVSA_AWS_REGION}} | ||
|
||
- name: Login to Non Production VOL ECR | ||
# if: github.event.review.state == 'APPROVED' | ||
id: login-ecr-vol-tooling-non-prod | ||
uses: aws-actions/[email protected] | ||
|
||
# - name: Push VOL API image | ||
# if: github.event.review.state == 'APPROVED' | ||
|