Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nazargora opened this issue Jul 23, 2024 · 1 comment

Comments

@Nazargora
Copy link

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/scout-action@v1.10.0
   with:
      command: cves
      image: my-node-app
      only-severities: low
      exit-code: true                          how to fix?
@mikeparker
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants