Skip to content

CI - Skip Azure migration tests on Dependabot pushes - #10566

Merged
potatoqualitee merged 1 commit into
developmentfrom
fix/dependabot-azure-migration-guard
Aug 13, 2026
Merged

CI - Skip Azure migration tests on Dependabot pushes#10566
potatoqualitee merged 1 commit into
developmentfrom
fix/dependabot-azure-migration-guard

Conversation

@potatoqualitee

Copy link
Copy Markdown
Member

Run Azure Migration Tests is the only red check on #10546, and it fails at Authenticate existing Azure CI identity:

Login failed with Error: Using auth-type: SERVICE_PRINCIPAL. Not all values are present.
Ensure 'client-id' and 'tenant-id' are supplied.

secrets.VMSS_AZURE_CREDENTIALS arrives empty because GitHub does not pass repository secrets to Dependabot-triggered runs. The workflow lists its own file in paths:, so any Dependabot bump of an action used here (this time azure/login v3.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.actor style already used in runner-boost.yml and claude-code-review.yml. Nothing changes for human pushes.

ps3-smoke.yml, runner-reconcile.yml and runner-scale-up.yml also pin azure/login, but they only run on schedule/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.ps1 and Test-ActionlintWorkflows.ps1 pass.

After this merges, #10546 needs a @dependabot rebase so its branch picks up the guard — the push event runs the workflow file from the pushed branch, not from development.

🤖 Generated with Claude Code

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>
@potatoqualitee
potatoqualitee merged commit b246a41 into development Aug 13, 2026
15 checks passed
@potatoqualitee
potatoqualitee deleted the fix/dependabot-azure-migration-guard branch August 13, 2026 14:44
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