Giter VIP home page Giter VIP logo

Comments (7)

astafan8 avatar astafan8 commented on June 20, 2024 1

I've found a solution that I don't like but it works.

In the pipelines editor on azure devops, go to variables section, and create a secret variable with a github access token in it. Then, refer to it in the git clone command in the azure-pipelines.yml file.

Resulting snippet from my yml file:

- script: |
      cd some_dir
      git clone https://x-access-token:$(astafan8-github-access-token)@github.com/ORG/OTHER_PRIVATE_REPO.git
      cd OTHER_PRIVATE_REPO
      git checkout v1
      pip install -e .
    displayName: 'Install OTHER_PRIVATE_REPO from tagged commit'

The x-access-token part was found here.

from azure-pipelines-yaml.

Adnn avatar Adnn commented on June 20, 2024 1

Any progress on this front?

from azure-pipelines-yaml.

astafan8 avatar astafan8 commented on June 20, 2024

I'm having a similar issue but it results in a different message.

I'm having a pipeline for SOME_PRIVATE_REPO that uses code from OTHER_PRIVATE_REPO within the same organization ORG. Azure Pipelines is enabled and is aware of both repositories (in settings in github).

Here's a snippet of the azure-pipelines.yml:

- script: |
      cd some_dir
      git clone https://github.com/ORG/OTHER_PRIVATE_REPO.git
      cd OTHER_PRIVATE_REPO
      git checkout v1
      pip install -e .
    displayName: 'Install OTHER_PRIVATE_REPO from tagged commit'

So, the job just hangs at the stage of Cloning into 'OTHER_PRIVATE_REPO'..., and after some time gets automatically cancelled due to timeout.

I tried googling but couldn't find how to access other private github repo inside a pipeline for a private github repo. Does anybody know?

from azure-pipelines-yaml.

rauljmz avatar rauljmz commented on June 20, 2024

Having the exact same issue. I agree with @astafan8 - I don't like the solution with the secret and the access token. Ideally it should support multiple the build pipeline should support checkout tasks. I think it relates to this User Voice request

from azure-pipelines-yaml.

stale avatar stale commented on June 20, 2024

In order to consolidate to fewer feedback channels, we've moved suggestions and issue reporting to Developer Community. Sorry for any confusion resulting from this move.

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on June 20, 2024

Moved into Developer Community: https://developercommunity.visualstudio.com/content/problem/1007491/unable-to-clone-another-private-repo-from-the-same.html
Please use "Follow" button on the right to track it

from azure-pipelines-yaml.

Saibamen avatar Saibamen commented on June 20, 2024

@DominicCabral:
Please go to this link and answer Microsoft team: https://developercommunity.visualstudio.com/content/problem/1007491/unable-to-clone-another-private-repo-from-the-same.html

from azure-pipelines-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.