Aqua PPL #8
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
name: Aqua PPL | |
on: | |
workflow_dispatch: | |
jobs: | |
ImgScan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Build local images | |
run: | | |
pwd | |
docker build -t rurouniken89/nodejsappgod . | |
- name: check images | |
run: docker images | |
- name: docker login | |
uses: docker/login-action@v3 | |
with: | |
registry: registry.aquasec.com | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: pull image aqua | |
run: docker pull registry.aquasec.com/scanner:2022.4 | |
- name: run scan images | |
run: | | |
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/tmp registry.aquasec.com/scanner:2022.4 scan -H https://aqua.nsth.net -U ken-scanner -P P@ssw0rd --local rurouniken89/nodejsappgod --jsonfile /tmp/result.json | |
cat /tmp/result.json |