scout-action icon indicating copy to clipboard operation
scout-action copied to clipboard

Error: could not authenticate: user githubactions not entitled to use Docker Scout

Open Nazargora opened this issue 1 year ago • 1 comments

i have this error if i use Login to a registry to pull private images (non Docker Hub. I add here registry-user and registry-password Service principle, Access key and user name, PAT and name of PAT. It always do not work.Byt if I use dockerhub user and dockerhub password it is work. What is problem? I tried use also login-action witt ACR and I had login succeeded but docker scout always failed. My action name: Build and Scan Docker Image

on: [push, pull_request]

jobs: build: runs-on: ubuntu-latest

steps:
 - name: Checkout code
   uses: actions/checkout@v2
   
 - name: Login to ACR
   uses: docker/login-action@v3
   with:
      registry: test.azurecr.io
      username: test
      password: test123

 - name: Build and Push Bckend
   shell: bash
   run: |
    docker build -t my-node-app .
 - name: Docker Scout
   id: docker-scout
   if: ${{ github.event_name != 'pull_request_target' }}
   uses: docker/[email protected]
   with:
      command: cves
      image: my-node-app
      only-severities: low
      exit-code: true                          how to fix?

Nazargora avatar Jul 23 '24 13:07 Nazargora

You need to be authenticated to Docker Hub in order to use scout, see notes here

https://github.com/docker/scout-action?tab=readme-ov-file#authentication

mikeparker avatar Jul 23 '24 16:07 mikeparker