2 years ago
#69630
shweta bajpai
How can we use the token to access a public git repository in AzureDevOps IOS build
We are using azure pipeline for building IOS application. While trying to install public pod, getting authorization issue.
Here is the YAML file:
- script: |
git config --global http.extraheader "AUTHORIZATION: bearer $(system.accesstoken)" clone
workingDirectory: /
displayName: 'Update git config'
continueOnError: false
- script: |
pod install || true
workingDirectory: '$(workingDirectory)'
displayName: 'Pod Install'
continueOnError: true
Error:
[!] Error installing podname
[!] /usr/local/bin/git clone https://... /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/d20220119-1836-gxxog --template= --single-branch --depth 1 --branch 1.1.0
Cloning into '/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/d20220119-1836-gxxog'...
fatal: could not read Username for 'https://..': terminal prompts disabled
swift
azure-devops
yaml
cocoapods
0 Answers
Your Answer