Azure / login

Connect to Azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@v1 Login doesn't read service principal "Not all values are present"

jeffwmartinez opened this issue · comments

I was using 1.4.6 and started getting a service principal error so I updated the service principal to a new one and still got an error. I only mention that in case it's related, but I am now using the latest version and get the following error with more details regarding the service principal. I've tried using creds first, then the individual parameters but it still says Not all values are present.

image

image

It says the result is null, but it's correctly saved as a secret in GitHub.

I'm wondering if the action is recognizing the values correctly.

workflow file link: https://github.com/Azure/AppService/blob/master/.github/workflows/deploy-to-staging-site.yml

workflow file zip:
deploy-to-staging-site.zip

Hi @jeffwmartinez, I found that your workflow is triggered by a pull request from a forked repo. In this case, credentials stored in main repo will not be passed to the runner. See https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow.

That was the solution. Thank you!