https://infracost.io logo
#help
Title
# help
b

billowy-vase-97860

03/21/2024, 2:40 PM
hi team, at this point im very confused about setting up infracost for a private azure devops repo. I have my yaml setup like in the screenshot. steps i took for authentication: 1. created ssh keys and added the public into azure devops under user settings. 2. created a variable with the value of the public key 3. created a variable with the value of the private key 4. created a base64 encoded value from the private key and put the value of the base64 into a variable i dont fully understand how to integrate this into the pipeline and where to go from now. the output of the pipeline is included.
l

little-author-61621

03/21/2024, 3:10 PM
@billowy-vase-97860 looking at the error it seems to be something with the
$GIT_SSH_KEY_BASE_64
value not being valid base64. If you have a Linux or Mac machine does this work for you locally?
Copy code
export GIT_SSH_KEY_BASE_64="<The value of the base64 encoded SSH key>"
echo $GIT_SSH_KEY_BASE_64 | base64 -d
b

billowy-vase-97860

03/21/2024, 3:27 PM
hi, this is the output:
i see there are spaces in between the base64 dont know if this is the problem, i will try again with deleting the spaces
l

little-author-61621

03/21/2024, 3:33 PM
That could be the problem yes. (I’ll also delete the image you posted in case it contains sensitive info). Feel free to DM any screenshots to me instead.