From fd44a8c1a74111ad4c38ac7b7334c05b5c4bd0ef Mon Sep 17 00:00:00 2001 From: rahul2393 Date: Thu, 6 May 2021 23:30:05 +0530 Subject: [PATCH] Improve Readme to remove docker build step (#43) * Remove docker build step * Update README.md Co-authored-by: Simar <1254783+simar7@users.noreply.github.com> --- README.md | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 7900c4d..c60a1de 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Build an image from Dockerfile - run: | - docker build -t docker.io/my-organization/my-app:${{ github.sha }} . - - name: Run Trivy vulnerability scanner in repo mode uses: aquasecurity/trivy-action@master with: @@ -147,11 +143,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - name: Build an image from Dockerfile - run: | - docker build -t docker.io/my-organization/my-app:${{ github.sha }} . - + - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: @@ -188,15 +180,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - name: Build an image from Dockerfile - run: | - docker build -t docker.io/my-organization/my-app:${{ github.sha }} . - + - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: - image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}' + image-ref: 'aws_account_id.dkr.ecr.region.amazonaws.com/imageName:${{ github.sha }}' format: 'template' template: '@/contrib/sarif.tpl' output: 'trivy-results.sarif' @@ -229,11 +217,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - name: Build an image from Dockerfile - run: | - docker build -t docker.io/my-organization/my-app:${{ github.sha }} . - + - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: @@ -267,11 +251,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - - name: Build an image from Dockerfile - run: | - docker build -t docker.io/my-organization/my-app:${{ github.sha }} . - + - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@master with: