fix: upgrade azure/login to v2.2.0 to prevent cleanup warnings#2584
Open
AyhanSetirekli wants to merge 1 commit intodiggerhq:developfrom
Open
fix: upgrade azure/login to v2.2.0 to prevent cleanup warnings#2584AyhanSetirekli wants to merge 1 commit intodiggerhq:developfrom
AyhanSetirekli wants to merge 1 commit intodiggerhq:developfrom
Conversation
This was referenced Feb 27, 2026
Upgrades azure/login from v2.1.1 to v2.2.0 which includes support for AZURE_LOGIN_POST_CLEANUP environment variable via post-if condition. The env var is set to false when setup-azure is not true, preventing the cleanup step from running and eliminating the warning about missing az CLI when Azure is not being used. Fixes diggerhq#2540
6ee4e4e to
2044d82
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes Azure CLI cleanup warning when
setup-azureis false.Problem
Current version causes a warning:

Root Cause & Solution
Digger uses
azure/login@v2.1.1which lacks support forAZURE_LOGIN_POST_CLEANUPenv var.This PR:
azure/login@v2.2.0(adds post-if support via move pre cleanup to main and add pre-if and post-if Azure/login#484)AZURE_LOGIN_POST_CLEANUP: falsewhen Azure is not being usedTesting
Before/after comparison: https://github.com/AyhanSetirekli/digger-azure-cleanup-test/actions/runs/22491196175
Impact
Eliminates warnings for non-Azure workflows. No change when
setup-azure: true.Fixes #2540
AI Assistance: This PR was written primarily by Claude Code.