From abb3f507acc792d488b157d8f563187651222aab Mon Sep 17 00:00:00 2001
From: Emmanuel <44951130+eoyewobi@users.noreply.github.com>
Date: Wed, 8 May 2024 23:30:31 +0100
Subject: [PATCH] Update main.yml

---
 .github/workflows/main.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 2b4adad..8053cb5 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -46,11 +46,15 @@ jobs:
     - name: Build Docker Image
       run: docker build -f Dockerfile -t myapp:latest .
 
+    - name: Login to Docker Hub
+      uses: docker/login-action@v3
+      with:
+        username: ${{ secrets.REPO_USER  }}
+        password: ${{ secrets.DOCKER_TOKEN }}
+
     - name: Docker Scout Scan
       uses: docker/scout-action@v1.8.0
       with:
-        dockerhub-user: ${{ secrets.REPO_USER }}
-        dockerhub-password: ${{ secrets.DOCKER_TOKEN }}
         command: quickview,cves