CI - Skip Azure migration tests on Dependabot pushes - #10566
Merged
Conversation
GitHub withholds repository secrets from Dependabot-triggered runs, so azure/login gets an empty VMSS_AZURE_CREDENTIALS and hard-fails. This workflow lists itself as a trigger path, so every Dependabot bump of an action used here goes red for a reason that has nothing to do with the bump (#10546). (do Get-DbaBuild) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Run Azure Migration Testsis the only red check on #10546, and it fails at Authenticate existing Azure CI identity:secrets.VMSS_AZURE_CREDENTIALSarrives empty because GitHub does not pass repository secrets to Dependabot-triggered runs. The workflow lists its own file inpaths:, so any Dependabot bump of an action used here (this timeazure/loginv3.0.0 → v3.0.1) fires the whole 75-minute Azure job and then dies on the login step — a red X for a reason unrelated to the bump.This adds a job-level actor guard so the job is skipped rather than failed, matching the
if: ... github.actorstyle already used inrunner-boost.ymlandclaude-code-review.yml. Nothing changes for human pushes.ps3-smoke.yml,runner-reconcile.ymlandrunner-scale-up.ymlalso pinazure/login, but they only run onschedule/workflow_dispatch, so Dependabot never triggers them — this workflow is the only one that needed the guard.Verified locally against both CI gates:
Test-GitHubActionsPins.ps1andTest-ActionlintWorkflows.ps1pass.After this merges, #10546 needs a
@dependabot rebaseso its branch picks up the guard — thepushevent runs the workflow file from the pushed branch, not fromdevelopment.🤖 Generated with Claude Code