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

Add option to azure login action with service principals and az acr login intwostep-container-build #14

Merged
merged 10 commits into from
Feb 12, 2025

Conversation

dylanhmorris
Copy link
Collaborator

@dylanhmorris dylanhmorris commented Feb 11, 2025

This should be a more robust approach. It should be more secure and should also help with CDCgov/pyrenew-hew#321

Also makes the docker login action inputs optional, since they are only needed and used if you go that route. I also see some argument that the action shouldn't attempt to log in at all, and the user should handle that upstream in their workflow.

@dylanhmorris dylanhmorris changed the title Add guidance on using az acr login and the azure login action with service principals Add option to az acr login and azure login action with service principals to twostep-container-build Feb 11, 2025
@dylanhmorris dylanhmorris changed the title Add option to az acr login and azure login action with service principals to twostep-container-build Add option to azure login action with service principals and az acr login intwostep-container-build Feb 11, 2025
@gvegayon
Copy link
Member

Awesome, thanks for the contribution, @dylanhmorris! We should probably add a test using az login, no?

@dylanhmorris
Copy link
Collaborator Author

Awesome, thanks for the contribution, @dylanhmorris! We should probably add a test using az login, no?

Added a test, but this repo will now need the self-hosted runners set up. We can use the STF service principal for now, but in the long run we should probably have a service principal for CFA actions itself.

@gvegayon
Copy link
Member

Alright, I just made a small tweak to reflect the new version of the action (1.2.1 vs 1.2.0). We can deal with adding a self-hosted runner later. I will approve, merge, and release so you can start using this ASAP in pyrenew.

Thanks again!

@gvegayon gvegayon merged commit 0b3f799 into main Feb 12, 2025
3 of 4 checks passed
@gvegayon gvegayon deleted the dylanhmorris-add-azure-login-guidance branch February 12, 2025 21:50
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

Successfully merging this pull request may close these issues.

2 participants