Skip to content

Commit

Permalink
Update aquasec-scanner-cli.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreazorzetto authored Jul 18, 2023
1 parent 52c430b commit 6e6f7c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/aquasec-scanner-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
- name: Executable permissions
run: chmod +x scannercli

- name: Tag image with Registry
run: docker tag my-demo-image:${{ github.sha }} $IMAGE_REGISTRY/my-demo-image:${{ github.sha }}

# Scanner authenticates to the server (-H) using a token (-A) but this can be replaced with user and password auth
# image is registered if found compliant (--register-compliant) as belonging to the final registry (--registry).
# the --local flag indicates a locally built image not available in the registry yet
- name: Scan image
run: ./scannercli scan -H ${{ secrets.AQUA_SERVER }} -n -A ${{ secrets.TOKEN }} --local --text --register-compliant --registry $IMAGE_REGISTRY my-demo-image:${{ github.sha }}

- name: Tag image with Registry
run: docker tag my-demo-image:${{ github.sha }} $IMAGE_REGISTRY/my-demo-image:${{ github.sha }}

- name: Push to Registry
run: echo "docker push"
run: echo "docker push"

0 comments on commit 6e6f7c3

Please sign in to comment.