question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terraform modules in azure repos

See original GitHub issue

Can’t figure out a way to make it work for my terraform when I have terraform modules in Azure Repos

  :host          => "dev.azure.com"
  :local_address => "redacted"
  :local_port    => 45288
  :path          => "/<org>/<project>/_git/az-application-insights.git/info/refs"
  :port          => 443
  :reason_phrase => "Not Found"
  :remote_ip     => "13.107.42.20"
  :status        => 404
  :status_line   => "HTTP/1.1 404 Not Found\r\n"
Checking if app_insights::git_provider::repo_name/git_repo(758284703d54a9cb9c82fc911cbaea3cba3c7f2d)::1.0.1 1.0.1 needs updating
/home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.196.0/lib/dependabot/git_metadata_fetcher.rb:58:in `fetch_upload_pack_for': The following git URLs could not be retrieved: https://dev.azure.com/<org>/<project>/_git/az-application-insights (Dependabot::GitDependenciesNotReachable)

I’ve tried to add

variables:
- group: dependabot
- name: DEPENDABOT_EXTRA_CREDENTIALS
  value: '[{"type":"terraform_registry", "url":"https://dev.azure.com", "token":"$(PAT)"}, {"type":"git", "url":"https://dev.azure.com", "username":"x-access-token", "password":"$(PAT)"}]'

to no avail.

In the browser I get not found error for the path /<org>/<project>/_git/az-application-insights.git/info/refs however it works if I remove the .git part from path.

I’ve been able to reproduce this in public Azure Devops project: https://dev.azure.com/aurimasnavardauskas/dependabot/_build

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
mburumaxwellcommented, Jan 24, 2023

This is fixed in https://github.com/dependabot/dependabot-core/pull/6320 but it is yet to be merged. You can voice your support and opinion on it, hoping it gets merged.

1reaction
AurimasNavcommented, Feb 8, 2023

Hi, seems to be working fine. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - How to source Terraform module hosted within Azure ...
Looking for the correct/working way to source a Terraform module that is hosted within a private Azure DevOps git repo via SSH (see...
Read more >
Terraform init with Azure DevOps and https for module source
So, we are using Azure Devops to store our Terraform config and all the self created module code. We also want to use...
Read more >
Using Terraform Modules from Git in Azure DevOps
Modules allow for packaging your Terraform code and logic into a re-usable unit of work that you can then share with others, or...
Read more >
Using Terraform Modules from Github in Azure DevOps
Accessing Terraform Modules in Azure DevOps Pipelines · Upload your private key · Known Host · Create the DevOps Pipeline · Deploy your...
Read more >
Sourcing Terraform Modules from Azure DevOps
I have an Azure DevOps Project for the Modules and, inside of that folder, there are two subfolders - one for Azure and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found