tinglesoftware / dependabot-azure-devops

Tools for updating dependencies in Azure DevOps repositories using https://dependabot.com
MIT License
201 stars 65 forks source link

Error fetching the image #544

Closed alex289 closed 1 year ago

alex289 commented 1 year ago

My config:

stages:
  - stage: CheckDependencies
    displayName: 'Check dependencies'
    jobs:
      - job: Dependabot
        displayName: 'Run Dependabot'
        pool:
          vmImage: 'ubuntu-latest'
        steps:
          - task: dependabot@1
            inputs:
              packageManager: ${{ parameters.packageManager }}
              directory: '/'
              targetBranch: ${{ parameters.targetBranch }}
              openPullRequestsLimit: 10
              versioningStrategy: 'auto'
              milestone: '13532'
              gitHubConnection: 'github.com_gh_conn'
              targetRepositoryName: ${{ parameters.repositoryName }}
              setAutoComplete: true
              mergeStrategy: 1

I dont know whats going on. It tries to get 0.14 even though I never set this version. And it cant even fetch it.

Did I something wrong or is there something I can do?

error

richardjharding commented 1 year ago

I've started getting the same overnight but with 0.16 tag?

kantmakm commented 1 year ago

We have been seeing this issue since 2.28.23 -- build pipelines that use dependabot for dependency updating are no longer functional. The endpoint for pulling the azdo dependabot docker images started requiring authentication? https://ghcr.io/v2/tingle/dependabot-azure-devops/manifests/0.8.4

$ curl -I https://ghcr.io/v2/tingle/dependabot-azure-devops/manifests/0.8.4

HTTP/2 401 content-type: application/json www-authenticate: Bearer realm="https://ghcr.io/token",service="[ghcr.io](http://ghcr.io/)",scope="repository:tingle/dependabot-azure-devops:pull" date: Wed, 01 Mar 2023 17:00:55 GMT content-length: 73 x-github-request-id: E64B:3B38:1F6DC76:300C3E7:63FF84C6

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}

richardjharding commented 1 year ago

ok fixed by clearing the docker settings I had in the task - after reading #542

alex289 commented 1 year ago

ok fixed by clearing the docker settings I had in the task - after reading #542

I read this too but I didn't set any docker settings. Very weird

kantmakm commented 1 year ago

Resolved by commenting out docker repo and tag in the dependabot AzD build task:

- task: dependabot@1
  inputs:
    useConfigFile: true
    failOnException: false
    excludeRequirementsToUnlock: false
    setAutoComplete: false
    mergeStrategy: '2'
    autoApprove: false
    openPullRequestsLimit: 10
    versioningStrategy: auto
    autoApproveUserEmail: '$(USEREMAIL)'
    autoApproveUserToken: '$(AZUREDEVOPSACCESSTOKEN)'
    gitHubAccessToken: '$(GITHUBACCESSTOKEN)'
    azureDevOpsAccessToken: '$(AZUREDEVOPSACCESSTOKEN)'
#    dockerImageRepository: 'tingle/dependabot-azure-devops'
#    dockerImageTag: '0.8.4'
mburumaxwell commented 1 year ago

@alex289

  1. Could you provide the logs for the task above pulling the docker image? It would show what task/extension version you are using.
  2. Are you running this OnPrem? What is the latest extension version in the organization?
  3. Could you run the pipeline in debug mode to see the task inputs in raw form?
alex289 commented 1 year ago

@mburumaxwell , this is the pipeline in debug mode. As you can see in my config I didnt specify any docker settings.

/usr/bin/docker run --rm -i -e GITHUB_ACCESS_TOKEN=*** -e DEPENDABOT_PACKAGE_MANAGER=nuget -e DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10 -e DEPENDABOT_DIRECTORY=/ -e DEPENDABOT_TARGET_BRANCH=develop -e DEPENDABOT_VERSIONING_STRATEGY=auto -e DEPENDABOT_MILESTONE=13532 -e DEPENDABOT_FAIL_ON_EXCEPTION=true -e AZURE_ORGANIZATION=name-here -e AZURE_PROJECT=some-project -e AZURE_REPOSITORY=repo -e AZURE_ACCESS_TOKEN=*** -e AZURE_MERGE_STRATEGY=1 -e AZURE_SET_AUTO_COMPLETE=true ghcr.io/tinglesoftware/dependabot-updater:0.14.0 Unable to find image 'ghcr.io/tinglesoftware/dependabot-updater:0.14.0' locally docker: Error response from daemon: manifest unknown. See 'docker run --help'.

Where can I find the latest extension version in the organization?

mburumaxwell commented 1 year ago

The log at the beginning of the task will show the extact version of the task downloaded on to the build agent.

To check the version of the extension installed go to https://dev.azure.com/<org-name>/_settings/extensions?tab=installed&extension=tingle-software.dependabot

Replace <org-name> with the name of the organization e.g. Fabrikam

mburumaxwell commented 1 year ago

To get detailed logs, follow instructions at https://learn.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/review-logs?view=azure-devops#configure-verbose-logs

You can then paste the raw logs for the task here.

alex289 commented 1 year ago

pipeline

extension

mburumaxwell commented 1 year ago

Since we have confirmed the versions to be the latest: 0.16.0.455 and 1.16.455, we need the logs with debugging enabled.

alex289 commented 1 year ago

@mburumaxwell , this is the pipeline in debug mode. As you can see in my config I didnt specify any docker settings.

`/usr/bin/docker run --rm -i -e GITHUB_ACCESS_TOKEN= -e DEPENDABOT_PACKAGE_MANAGER=nuget -e DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10 -e DEPENDABOT_DIRECTORY=/ -e DEPENDABOT_TARGET_BRANCH=develop -e DEPENDABOT_VERSIONING_STRATEGY=auto -e DEPENDABOT_MILESTONE=13532 -e DEPENDABOT_FAIL_ON_EXCEPTION=true -e AZURE_ORGANIZATION=name-here -e AZURE_PROJECT=some-project -e AZURE_REPOSITORY=repo -e AZURE_ACCESS_TOKEN= -e AZURE_MERGE_STRATEGY=1 -e AZURE_SET_AUTO_COMPLETE=true ghcr.io/tinglesoftware/dependabot-updater:0.14.0

Unable to find image 'ghcr.io/tinglesoftware/dependabot-updater:0.14.0' locally

docker: Error response from daemon: manifest unknown.

See 'docker run --help'.

`

Where can I find the latest extension version in the organization?

This are the only outputs with debugging enabled

mburumaxwell commented 1 year ago

@alex289 I need the logs between the execution of docker and at the start of the task. It should be in blue when debugging is enabled. It will show the inputs in their raw form and some method executions in the task.

Without these logs, I cannot help you. More so if your organization/company does not allow you to share logs even in anonymized versions.

alex289 commented 1 year ago

This is all there is when debugging is enabled. The blue here is the what I wrote before.

Just to be sure. Debug mode is enabled by extraEnvironmentVariables: 'EXCON_DEBUG=1', right?

error

mburumaxwell commented 1 year ago

To get detailed logs, follow instructions at https://learn.microsoft.com/en-us/azure/devops/pipelines/troubleshooting/review-logs?view=azure-devops#configure-verbose-logs

You can then paste the raw logs for the task here.

This is how you get detailed debug logs for the task extension.

alex289 commented 1 year ago

Ah thank you. This is the debug information of the dependabot task

2023-03-07T12:31:50.6337238Z ##[debug]Evaluating condition for step: 'dependabot'
2023-03-07T12:31:50.6340159Z ##[debug]Evaluating: SucceededNode()
2023-03-07T12:31:50.6341257Z ##[debug]Evaluating SucceededNode:
2023-03-07T12:31:50.6343141Z ##[debug]=> True
2023-03-07T12:31:50.6343730Z ##[debug]Result: True
2023-03-07T12:31:50.6344237Z ##[section]Starting: dependabot
2023-03-07T12:31:50.6359543Z ==============================================================================
2023-03-07T12:31:50.6359822Z Task         : Dependabot
2023-03-07T12:31:50.6359975Z Description  : Automatically update dependencies and vulnerabilities in your code
2023-03-07T12:31:50.6360204Z Version      : 1.16.455
2023-03-07T12:31:50.6360354Z Author       : Tingle Software
2023-03-07T12:31:50.6360510Z Help         : For help please visit https://github.com/tinglesoftware/dependabot-azure-devops
2023-03-07T12:31:50.6360767Z ==============================================================================
2023-03-07T12:31:50.8021803Z ##[debug]Using node path: /home/vsts/agents/2.217.2/externals/node16/bin/node
2023-03-07T12:31:51.0279772Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2023-03-07T12:31:51.0293100Z ##[debug]loading inputs and endpoints
2023-03-07T12:31:51.0299541Z ##[debug]loading INPUT_USECONFIGFILE
2023-03-07T12:31:51.0313346Z ##[debug]loading INPUT_FAILONEXCEPTION
2023-03-07T12:31:51.0316218Z ##[debug]loading INPUT_SKIPPULLREQUESTS
2023-03-07T12:31:51.0320063Z ##[debug]loading INPUT_ABANDONUNWANTEDPULLREQUESTS
2023-03-07T12:31:51.0323924Z ##[debug]loading INPUT_SETAUTOCOMPLETE
2023-03-07T12:31:51.0327634Z ##[debug]loading INPUT_MERGESTRATEGY
2023-03-07T12:31:51.0331289Z ##[debug]loading INPUT_AUTOAPPROVE
2023-03-07T12:31:51.0336000Z ##[debug]loading INPUT_GITHUBCONNECTION
2023-03-07T12:31:51.0340998Z ##[debug]loading INPUT_TARGETREPOSITORYNAME
2023-03-07T12:31:51.0345598Z ##[debug]loading INPUT_DOCKERIMAGEREGISTRY
2023-03-07T12:31:51.0350357Z ##[debug]loading INPUT_DOCKERIMAGEREPOSITORY
2023-03-07T12:31:51.0355241Z ##[debug]loading INPUT_DOCKERIMAGETAG
2023-03-07T12:31:51.0360132Z ##[debug]loading INPUT_FORWARDHOSTSSHSOCKET
2023-03-07T12:31:51.0364894Z ##[debug]loading INPUT_PACKAGEMANAGER
2023-03-07T12:31:51.0368532Z ##[debug]loading INPUT_DIRECTORY
2023-03-07T12:31:51.0372137Z ##[debug]loading INPUT_TARGETBRANCH
2023-03-07T12:31:51.0376005Z ##[debug]loading INPUT_OPENPULLREQUESTSLIMIT
2023-03-07T12:31:51.0379685Z ##[debug]loading INPUT_VERSIONINGSTRATEGY
2023-03-07T12:31:51.0383139Z ##[debug]loading INPUT_MILESTONE
2023-03-07T12:31:51.0387391Z ##[debug]loading ENDPOINT_AUTH_41f1ae7c-85ba-44ad-96d6-d074bd7b984c
2023-03-07T12:31:51.0392523Z ##[debug]loading ENDPOINT_AUTH_SCHEME_41f1ae7c-85ba-44ad-96d6-d074bd7b984c
2023-03-07T12:31:51.0396522Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_41f1ae7c-85ba-44ad-96d6-d074bd7b984c_CONFIGURATIONID
2023-03-07T12:31:51.0400448Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_41f1ae7c-85ba-44ad-96d6-d074bd7b984c_ACCESSTOKEN
2023-03-07T12:31:51.0404259Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-03-07T12:31:51.0408505Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-03-07T12:31:51.0411983Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-03-07T12:31:51.0417421Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-03-07T12:31:51.0420938Z ##[debug]loaded 27
2023-03-07T12:31:51.0426940Z ##[debug]Agent.ProxyUrl=undefined
2023-03-07T12:31:51.0429977Z ##[debug]Agent.CAInfo=undefined
2023-03-07T12:31:51.0432062Z ##[debug]Agent.ClientCert=undefined
2023-03-07T12:31:51.0434067Z ##[debug]Agent.SkipCertValidation=undefined
2023-03-07T12:31:51.0962589Z ##[debug]useConfigFile=true
2023-03-07T12:31:51.0963564Z ##[debug]Checking for docker install ...
2023-03-07T12:31:51.0968104Z ##[debug]which 'docker'
2023-03-07T12:31:51.0984020Z ##[debug]found: '/usr/bin/docker'
2023-03-07T12:31:51.0989424Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/tema-name/
2023-03-07T12:31:51.1167226Z ##[debug]System.TeamProject=project name
2023-03-07T12:31:51.1170944Z ##[debug]targetRepositoryName=repo-name
2023-03-07T12:31:51.1174341Z ##[debug]gitHubAccessToken=undefined
2023-03-07T12:31:51.1178867Z ##[debug]gitHubConnection=41f1ae7c-85ba-44ad-96d6-d074bd7b984c
2023-03-07T12:31:51.1179745Z ##[debug]GitHub connection supplied. A token shall be extracted from it.
2023-03-07T12:31:51.1184928Z ##[debug]41f1ae7c-85ba-44ad-96d6-d074bd7b984c exists true
2023-03-07T12:31:51.1187445Z ##[debug]Endpoint scheme: OAuth
2023-03-07T12:31:51.1189444Z ##[debug]azureDevOpsUser=undefined
2023-03-07T12:31:51.1192070Z ##[debug]azureDevOpsAccessToken=undefined
2023-03-07T12:31:51.1193187Z ##[debug]No custom token provided. The SystemVssConnection's AccessToken shall be used.
2023-03-07T12:31:51.1200777Z ##[debug]SystemVssConnection auth param AccessToken = ***
2023-03-07T12:31:51.1204044Z ##[debug]setAutoComplete=true
2023-03-07T12:31:51.1208331Z ##[debug]mergeStrategy=1
2023-03-07T12:31:51.1211162Z ##[debug]autoCompleteIgnoreConfigIds=undefined
2023-03-07T12:31:51.1214514Z ##[debug]autoApprove=false
2023-03-07T12:31:51.1216814Z ##[debug]autoApproveUserToken=undefined
2023-03-07T12:31:51.1220318Z ##[debug]failOnException=true
2023-03-07T12:31:51.1223198Z ##[debug]excludeRequirementsToUnlock=undefined
2023-03-07T12:31:51.1225021Z ##[debug]updaterOptions=undefined
2023-03-07T12:31:51.1226528Z ##[debug]DEPENDABOT_ALLOW_CONDITIONS=undefined
2023-03-07T12:31:51.1227617Z ##[debug]targetUpdateIds=undefined
2023-03-07T12:31:51.1228661Z ##[debug]securityAdvisoriesFile=undefined
2023-03-07T12:31:51.1229727Z ##[debug]skipPullRequests=false
2023-03-07T12:31:51.1230783Z ##[debug]abandonUnwantedPullRequests=false
2023-03-07T12:31:51.1231938Z ##[debug]extraEnvironmentVariables=undefined
2023-03-07T12:31:51.1233020Z ##[debug]forwardHostSshSocket=false
2023-03-07T12:31:51.1235231Z ##[debug]dockerImageRegistry=ghcr.io
2023-03-07T12:31:51.1237661Z ##[debug]dockerImageRepository=tinglesoftware/dependabot-updater
2023-03-07T12:31:51.1239822Z ##[debug]dockerImageTag=0.14.0
2023-03-07T12:31:51.1244801Z ##[debug]Attempting to fetch configuration file via REST API ...
2023-03-07T12:31:51.1245958Z ##[debug]GET "config path"
2023-03-07T12:31:51.3042453Z ##[debug]No configuration file at "config path"
2023-03-07T12:31:51.3084197Z ##[debug]GET "config path"
2023-03-07T12:31:51.4295913Z ##[debug]Found configuration file at "config path"
2023-03-07T12:31:51.4299479Z ##[debug]Configuration file contents read.
2023-03-07T12:31:51.4317269Z ##[debug]Parsed YAML content from configuration file contents.
2023-03-07T12:31:51.4321260Z ##[debug]which 'docker'
2023-03-07T12:31:51.4323639Z ##[debug]found: '/usr/bin/docker'
2023-03-07T12:31:51.4327363Z ##[debug]which '/usr/bin/docker'
2023-03-07T12:31:51.4329685Z ##[debug]found: '/usr/bin/docker'
2023-03-07T12:31:51.4331987Z ##[debug]/usr/bin/docker arg: ["run"]
2023-03-07T12:31:51.4335096Z ##[debug]/usr/bin/docker arg: ["--rm"]
2023-03-07T12:31:51.4343455Z ##[debug]/usr/bin/docker arg: ["-i"]
2023-03-07T12:31:51.4348444Z ##[debug]/usr/bin/docker arg: ["-e","GITHUB_ACCESS_TOKEN=***"]
2023-03-07T12:31:51.4350124Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_PACKAGE_MANAGER=nuget"]
2023-03-07T12:31:51.4351600Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10"]
2023-03-07T12:31:51.4352946Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_DIRECTORY=/"]
2023-03-07T12:31:51.4354198Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_TARGET_BRANCH=develop"]
2023-03-07T12:31:51.4355523Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_VERSIONING_STRATEGY=auto"]
2023-03-07T12:31:51.4356874Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_MILESTONE=13532"]
2023-03-07T12:31:51.4358164Z ##[debug]/usr/bin/docker arg: ["-e","DEPENDABOT_FAIL_ON_EXCEPTION=true"]
2023-03-07T12:31:51.4359908Z ##[debug]/usr/bin/docker arg: ["-e","AZURE_ORGANIZATION=netgo"]
2023-03-07T12:31:51.4361226Z ##[debug]/usr/bin/docker arg: ["-e","AZURE_PROJECT=netgo%20Central%20Hub"]
2023-03-07T12:31:51.4396070Z ##[debug]/usr/bin/docker arg: ["-e","AZURE_REPOSITORY=CSP"]
2023-03-07T12:31:51.4401043Z ##[debug]/usr/bin/docker arg: ["-e","AZURE_ACCESS_TOKEN=***"]
2023-03-07T12:31:51.4403055Z ##[debug]/usr/bin/docker arg: ["-e","AZURE_MERGE_STRATEGY=1"]
2023-03-07T12:31:51.4405333Z ##[debug]/usr/bin/docker arg: ["-e","AZURE_SET_AUTO_COMPLETE=true"]
2023-03-07T12:31:51.4406875Z ##[debug]Running docker container -> 'ghcr.io/tinglesoftware/dependabot-updater:0.14.0' ...
2023-03-07T12:31:51.4408477Z ##[debug]/usr/bin/docker arg: ghcr.io/tinglesoftware/dependabot-updater:0.14.0
2023-03-07T12:31:51.4409907Z ##[debug]exec tool: /usr/bin/docker
2023-03-07T12:31:51.4410771Z ##[debug]arguments:
2023-03-07T12:31:51.4411619Z ##[debug]   run
2023-03-07T12:31:51.4412587Z ##[debug]   --rm
2023-03-07T12:31:51.4413785Z ##[debug]   -i
2023-03-07T12:31:51.4414753Z ##[debug]   -e
2023-03-07T12:31:51.4416064Z ##[debug]   GITHUB_ACCESS_TOKEN=***
2023-03-07T12:31:51.4417420Z ##[debug]   -e
2023-03-07T12:31:51.4418420Z ##[debug]   DEPENDABOT_PACKAGE_MANAGER=nuget
2023-03-07T12:31:51.4419936Z ##[debug]   -e
2023-03-07T12:31:51.4422022Z ##[debug]   DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10
2023-03-07T12:31:51.4422832Z ##[debug]   -e
2023-03-07T12:31:51.4423502Z ##[debug]   DEPENDABOT_DIRECTORY=/
2023-03-07T12:31:51.4424206Z ##[debug]   -e
2023-03-07T12:31:51.4424837Z ##[debug]   DEPENDABOT_TARGET_BRANCH=develop
2023-03-07T12:31:51.4425575Z ##[debug]   -e
2023-03-07T12:31:51.4426220Z ##[debug]   DEPENDABOT_VERSIONING_STRATEGY=auto
2023-03-07T12:31:51.4426930Z ##[debug]   -e
2023-03-07T12:31:51.4427616Z ##[debug]   DEPENDABOT_MILESTONE=13532
2023-03-07T12:31:51.4428309Z ##[debug]   -e
2023-03-07T12:31:51.4428932Z ##[debug]   DEPENDABOT_FAIL_ON_EXCEPTION=true
2023-03-07T12:31:51.4429635Z ##[debug]   -e
2023-03-07T12:31:51.4430368Z ##[debug]   AZURE_ORGANIZATION=netgo
2023-03-07T12:31:51.4431140Z ##[debug]   -e
2023-03-07T12:31:51.4431786Z ##[debug]   AZURE_PROJECT=netgo%20Central%20Hub
2023-03-07T12:31:51.4432503Z ##[debug]   -e
2023-03-07T12:31:51.4433447Z ##[debug]   AZURE_REPOSITORY=CSP
2023-03-07T12:31:51.4434152Z ##[debug]   -e
2023-03-07T12:31:51.4437722Z ##[debug]   AZURE_ACCESS_TOKEN=***
2023-03-07T12:31:51.4438480Z ##[debug]   -e
2023-03-07T12:31:51.4439101Z ##[debug]   AZURE_MERGE_STRATEGY=1
2023-03-07T12:31:51.4440321Z ##[debug]   -e
2023-03-07T12:31:51.4440965Z ##[debug]   AZURE_SET_AUTO_COMPLETE=true
2023-03-07T12:31:51.4441793Z ##[debug]   ghcr.io/tinglesoftware/dependabot-updater:0.14.0
2023-03-07T12:31:51.4447485Z [command]/usr/bin/docker run --rm -i -e GITHUB_ACCESS_TOKEN=*** -e DEPENDABOT_PACKAGE_MANAGER=nuget -e DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10 -e DEPENDABOT_DIRECTORY=/ -e DEPENDABOT_TARGET_BRANCH=develop -e DEPENDABOT_VERSIONING_STRATEGY=auto -e DEPENDABOT_MILESTONE=13532 -e DEPENDABOT_FAIL_ON_EXCEPTION=true -e AZURE_ORGANIZATION=netgo -e AZURE_PROJECT=netgo%20Central%20Hub -e AZURE_REPOSITORY=CSP -e AZURE_ACCESS_TOKEN=*** -e AZURE_MERGE_STRATEGY=1 -e AZURE_SET_AUTO_COMPLETE=true ghcr.io/tinglesoftware/dependabot-updater:0.14.0
2023-03-07T12:31:51.6065110Z Unable to find image 'ghcr.io/tinglesoftware/dependabot-updater:0.14.0' locally
2023-03-07T12:31:52.8928877Z docker: Error response from daemon: manifest unknown.
2023-03-07T12:31:52.8978779Z See 'docker run --help'.
2023-03-07T12:31:52.8981799Z ##[debug]Exit code 125 received from tool '/usr/bin/docker'
2023-03-07T12:31:52.8982969Z ##[debug]STDIO streams have closed for tool '/usr/bin/docker'
2023-03-07T12:31:52.8983786Z ##[debug]task result: Failed
2023-03-07T12:31:52.9012850Z ##[error]The process '/usr/bin/docker' failed with exit code 125
2023-03-07T12:31:52.9024271Z ##[debug]Processed: ##vso[task.issue type=error;]The process '/usr/bin/docker' failed with exit code 125
2023-03-07T12:31:52.9047745Z ##[debug]Processed: ##vso[task.complete result=Failed;]The process '/usr/bin/docker' failed with exit code 125
2023-03-07T12:31:52.9062178Z ##[section]Finishing: dependabot
mburumaxwell commented 1 year ago

According to these logs, the input dockerImageTag has been set to 0.14.0 Azure logs the inputs as they are accessed task in color blue.

The task usually parses the version for its own definition file (task.json).

Check your pipeline definition or your pipeline template for the inputs to - task: dependabot@1

If that doesn't help, post the pipeline definition (and any relevant templates) here, then you can get some guidance

alex289 commented 1 year ago

The executing pipeline in a "dependabot" repo repo pipeline

The base yml for the pipeline in a "dependabot" repo base config

.github/dependabot.yml config inside the target repo dependabot config

And it worked like this till couple weeks ago

mburumaxwell commented 1 year ago

Could you be having the dockerImageTag input below line 41 of the base yaml?

Also, could you try a new simple pipeline that looks like this:

steps:
- task: depenadbot@1

It should execute the docker container but the container will then in the container. This will help isolate the issue in the pipeline.

I also noticed you have a lot of inputs which have since been removed.

Your pipeline would ideally only need to look like this:

steps:
- task: dependabot@1
  inputs:
    githubConnection: my-github-conn
    targetRepositoryName: ${{ parameters.repositoryName }}
    setAutoComplete: true
    mergeStrategy: 'squash'
alex289 commented 1 year ago

In line 41 was a environment variable. I will try to remove deprecated configs and try a minimal version of the pipeline. Thanks a lot for your help

alex289 commented 1 year ago

I found the issue. The config change didnt apply to the pipeline because it used the wrong branch. I am so sorry for the inconvenience.

Thanks for your help and the great work.

PieniIhme commented 1 year ago

FYI: We had similar error message since 27.2.2023.

Unable to find image 'ghcr.io/tingle/dependabot-azure-devops:0.16' locally
docker: Error response from daemon: Head "[https://ghcr.io/v2/tingle/dependabot-azure-devops/manifests/0.16"](https://ghcr.io/v2/tingle/dependabot-azure-devops/manifests/0.16%22): denied.
See 'docker run --help'.
##[error]The process '/usr/bin/docker' failed with exit code 125

Seems like dockerImageRepository variable default value has been changed from 'tingle/dependabot-azure-devops' to 'tinglesoftware/dependabot-updater' (Dependabot pipeline task).

After updating pipeline dependabot@1 task input dockerImageRepository to'tinglesoftware/dependabot-updater' it started to work again.