Skip to content

ci: point workflow triggers at main instead of master - #27

Merged
admclamb merged 2 commits into
mainfrom
admclamb/fix-master-branch-triggers
Oct 10, 2026
Merged

admclamb merged 2 commits into
mainfrom
admclamb/fix-master-branch-triggers

Conversation

@admclamb

Copy link
Copy Markdown
Collaborator

Problem

The default branch was renamed master → main, but three workflows still filter on master. Since no master branch exists (origin/HEAD -> origin/main), those triggers have been silently dead.

Workflow Dead trigger Still worked
deploy-scrum.yml push workflow_dispatch only
codeql.yml push, pull_request weekly cron (0 6 * * 1)
security-audit.yml pull_request weekly cron (0 7 * * 1), workflow_dispatch

deploy-scrum.yml is the significant one: push was its only automatic trigger and it has no schedule fallback, so the Scrum environment has not auto-deployed since the rename.

For the other two the weekly cron kept running, so scanning was never fully blind — but PRs got no CodeQL diff alerts and no per-PR NuGet audit, and CodeQL alert state only refreshed weekly instead of per-merge.

Change

Four lines, master → main. No other edits.

pull_request.yml and sonarqube.yml were already on main; this brings the remaining three in line.

Heads-up before merging

This re-arms the Scrum deploy on every push to main — migrate, seed, then deploy to app-awapi-scrum-centralus-03. That is what the workflow was written to do, but it hasn't fired in a while, so the first run will apply whatever migrations have accumulated since the rename. Worth watching that run.

Verification

  • grep -rn master .github/workflows/ → no matches.
  • Branch protection on main requires only build / build (from pull_request.yml), so no required check was blocked by this and none changes here.
  • No YAML parser available locally; trigger blocks were verified by inspection. Indentation and structure are unchanged — the edits are single-token replacements inside existing list items. Actions accepting the files on this PR is the real confirmation.

🤖 Generated with Claude Code

admclamb and others added 2 commits October 10, 2026 17:54
The default branch was renamed master -> main, but three workflows still
filtered on master and so stopped firing:

- deploy-scrum.yml: push was its only automatic trigger, so the Scrum
  environment had not auto-deployed since the rename.
- codeql.yml: push and pull_request scanning were dead; only the weekly
  cron still ran.
- security-audit.yml: per-PR NuGet audit was dead; cron and manual
  dispatch still ran.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@admclamb
admclamb merged commit 744948a into main Oct 10, 2026
6 checks passed
@admclamb
admclamb deleted the admclamb/fix-master-branch-triggers branch October 10, 2026 22:10
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.

1 participant