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: