-
Notifications
You must be signed in to change notification settings - Fork 97
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
[BUG] - Azure integration tests fail every time they're run manually from a branch other than main #2893
Comments
With Azure, you need to set a scope for your oidc integration. You cannot just give perms to a repo. The options are to specify:
wild cards or patterns are not allowed. Currently it is set to To be able to run this action from any branch, we could:
I favor option 1, but I am interested in what you think @marcelovilla and @viniciusdc Documentation reference: |
Nice catch @dcmcand !
I also favor this option; I would like to reduce our dependency on high-privilege credentials as much as possible. |
It's unfortunate they don't support the use of wildcards to target several branches. I would also favor the first alternative, as that involves minimal changes in the workflow itself. |
@marcelovilla: Just a bystander but, as of December, we do support wildcards for matching against multiple branches. Our docs are here: Flexible FIC |
Hey @nickludwig , thanks for the heads up! @dcmcand given there seems to be wildcard support now, I suggest we try that option. |
Describe the bug
We have integration tests for each supported cloud provider, including Azure, that are run on a schedule every week off of
main
but that can also be triggered manually from any given branch.The tests running on a schedule are working fine. For example, see:
However, when run manually from another branch, they seem to fail with the following error when trying to authenticate:
See, for example:
All of these were run from different branches than
main
and do not have any evident changes related to Azure authenticationExpected behavior
Tests should succeed, at least during the Azure login step.
OS and architecture in which you are running Nebari
GHA
How to Reproduce the problem?
Run the Azure deployment GHA workflow manually from a branch other than
main
.Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: