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

Failed to download source code #14

Open
nithin-nk opened this issue Nov 23, 2022 · 7 comments
Open

Failed to download source code #14

nithin-nk opened this issue Nov 23, 2022 · 7 comments

Comments

@nithin-nk
Copy link

nithin-nk commented Nov 23, 2022

I am trying to build ACR image with the following code

      - name: ACR build
        id: build-push-acr
        uses: azure/acr-build@v1
        with:
            service_principal: ${{ secrets.service_principal }}
            service_principal_password: ${{ secrets.service_principal_password }}
            tenant: ${{ secrets.tenant }}
            registry: ${{ secrets.registry }}
            repository: ${{ secrets.repository }}
            image: flink-image
            git_access_token: ${{ secrets.git_access_token }}
            folder: ./deployments
            branch: main
            tag: ${{ github.sha }}
            dockerfile: ./deployments/Dockerfile

I am getting the below mentioned error

Downloading source code... 45 Run ID: cb8 failed after 3s. Error: failed to download context. Please check if the URL is incorrect. If it has credentials, please check if they are expired

I am not using any URL in configuration

Kindly help

@darena-patrick
Copy link

I have the same issue - did you figure this out?

@john-liezers
Copy link

I had the same problem, check if your organization uses SAML SSO, if it does you need to 'enable' your PAT token.

You can go into the Personal Access Token settings and choose "Configure SSO". From there, you can enable the token for the specific organization that you're using. After that point, using it as normal should work.

@Malay-Acharya
Copy link

Any updates on this? Facing the same issue.

@foliveiraGH
Copy link

🔍 the same here.

@Malay-Acharya
Copy link

🔍 the same here.
Try changing the Git Access Token. That worked for me. Use the classic token, the new ones didn't work for me.

@brandonstarxel
Copy link

They mean add a git_access_token line like at the end here:
uses: azure/acr-build@v1 with: service_principal: ${{ secrets.service_principal }} service_principal_password: ${{ secrets.service_principal_password }} tenant: ${{ secrets.tenant }} registry: ${{ secrets.registry }} repository: ${{ secrets.repository }} image: ${{ secrets.image }} branch: main tag: ${{ github.sha }} git_access_token: ${{ secrets.GIT_ACCESS_TOKEN }}

That GIT_ACCESS_TOKEN you get from PAT: https://github.com/settings/tokens

@Uzzije
Copy link

Uzzije commented Oct 8, 2024

Any updates on this?

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

7 participants