Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
agondo69 authored Jan 8, 2025
1 parent 7165cc8 commit b8aa4ef
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,39 @@ jobs:
uses: actions/upload-artifact@v3
if: always()
with:
name: Bandit vulnerability findings
path: bandit-report.json
name: Bandit vulnerability findings
path: bandit-report.json

dockerimage_scan:
name: Build our image and run a scan on it
runs-on: ubuntu-latest
name: Build our image and run a scan on it
runs-on: ubuntu-latest

steps:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up our docker
uses: docker-practice/actions-setup-docker@v1
with:
docker_version: '20.10'
docker_version: '20.10'

- name: Set up Docker daemon configuration
run: |
echo '{
"hosts": ["unix:///var/run/docker.sock"],
"live-restore": true
}' | sudo tee /etc/docker/daemon.json
# Ensure Docker is restarted to apply configuration
- name: Restart Docker
run: |
sudo systemctl restart docker
- name: Build the image
run: docker build -f Dockerfile -t agapp:latest .

- name: Docker Scout Scan image
run: |
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
sh install-scout.sh
docker scout quickview
docker scout cves
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
sh install-scout.sh
docker scout quickview
docker scout cves

0 comments on commit b8aa4ef

Please sign in to comment.