Repository navigation
chore: clean up dead workflows, fix active automation bugs, and harden GitHub Actions - #9750
Open
Krrish Mittal (takyyon) wants to merge 4 commits into
Open
Krrish Mittal (takyyon) wants to merge 4 commits into
Krrish Mittal (takyyon) wants to merge 4 commits into
Conversation
- Delete 7 dead/zero-success workflows (production-build, Deploy-Standalone, private-vsix-build, update-changelog, compile-loc, loc-auto-merge, copilot-design-pass) and update stale documentation references. - Fix Entra-blocked and release workflows: default enable_blob_upload to false in version-release.yml, pause scheduled runs pending Entra/ADO WIF migration in real-e2e.yml and standalone-ephemeral.yml, guard merge-reports when zero blob reports exist, and restrict upload-templates.yml to workflow_dispatch. - Recompile all 3 gh-aw agentic workflows (daily-repo-status, issue-triage-agent, issue-triage-feedback) with gh aw v1.2.2. - Fix active workflow logic bugs: convert update-knowledge-graphs.yml to workflow_dispatch patch-artifact generation; fix uncached per-package flake detection in copilot-flake-review.yml; unify scheduled/labeled investigation and pass prompts/copilot-investigate.md in copilot-investigate.yml; fix workflow_dispatch/repository_dispatch deploy condition in Deploy-Documentation.yml; read PR_VALIDATION_LOGIC_APP_URL from secrets only in pr-ai-validation.yml with regression test. - Harden remaining active workflows with minimal permissions, safe concurrency groups, explicit timeouts, Node 24 alignment, and daily ISSUE_MANAGEMENT cron, while preserving all required status checks on main. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No change required |
| Commit Type | ✅ | Keep chore selected |
| Risk Level | Consider changing the body and label from risk:medium to risk:high |
|
| What & Why | ✅ | No change required |
| Impact of Change | ✅ | No change required |
| Test Plan | ✅ | Unit test coverage and validation evidence are present |
| Contributors | ✅ | Optional: credit additional collaborators |
| Screenshots/Videos | ✅ | Correctly marked not applicable |
The PR title and body pass the documentation review. However, the advised risk level is higher than the submitted medium estimate. Please reassess the risk and, if appropriate, update the body to select High - Major changes, significant user/system impact and change the label to risk:high.
Powered by: Logic App (fallback) | Last updated: Sat, 28 Nov 2026 04:35:17 GMT
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved workflow issues can leave committed fixes unpublished, skip eligible bugs beyond the first page, and deploy documentation from a non-main branch.
3 open issues
What changed in this PR
This PR cleans up and hardens the repository’s GitHub Actions automation without changing product runtime code. It preserves required PR check names and triggers while reducing failing workflow noise.
Changes:
- Removes seven obsolete workflows and pauses selected authentication-blocked automatic runs.
- Restructures AI automation, moves PR-validation fallback configuration to secrets, and replaces direct knowledge-graph pushes with patch artifacts.
- Adds concurrency controls, timeouts, scoped permissions, updated action pins, regression checks, and documentation.
| File | Description |
|---|---|
VERSION_RELEASE_MIGRATION.md |
Records legacy release-workflow removal and rollback steps. |
scripts/pr-ai-validation.test.mjs |
Checks secret-only fallback URL configuration. |
scripts/ephemeral/github.test.mjs |
Updates assertions for the paused preview schedule. |
README.md |
Documents manual knowledge-graph patch generation. |
docs/ai-setup/shared.md |
Updates shared graph-rebuild guidance. |
CLAUDE.md |
Regenerates graph-rebuild guidance. |
apps/docs/docs/Development/logging.md |
Updates telemetry documentation to reference the release workflow. |
apps/docs/docs/Development/graphify.md |
Explains manual rebuilds and patch artifacts. |
.github/workflows/vscode-e2e.yml |
Sets read-only contents permission and removes a stale comment reference. |
.github/workflows/version-release.yml |
Disables blob upload by default and bounds release jobs. |
.github/workflows/upload-templates.yml |
Makes template publication manual with concurrency and timeout controls. |
.github/workflows/update-knowledge-graphs.yml |
Replaces automatic pushes with downloadable patches. |
.github/workflows/update-changelog.yml |
Removes the unused changelog workflow. |
.github/workflows/test.yml |
Adds permissions, PR concurrency, and a build timeout. |
.github/workflows/standalone-ephemeral.yml |
Pauses scheduled reconciliation while retaining other triggers. |
.github/workflows/real-e2e.yml |
Pauses scheduled tests and guards empty report merges. |
.github/workflows/production-build.yml |
Removes the superseded production workflow. |
.github/workflows/private-vsix-build.yml |
Removes the unused private extension-build workflow. |
.github/workflows/pr-coverage.yml |
Adds PR concurrency and a coverage timeout. |
.github/workflows/pr-ai-validation.yml |
Uses a secret fallback URL and adds PR-scoped concurrency. |
.github/workflows/playwright.yml |
Adds read-only permissions, concurrency, and report-job timeouts. |
.github/workflows/loc-auto-merge.yml |
Removes the failing localization auto-merge workflow. |
.github/workflows/ISSUE_MANAGEMENT.yml |
Reduces stale-issue processing to daily runs and bounds execution. |
.github/workflows/Deploy-Standalone.yml |
Removes the legacy standalone deployment workflow. |
.github/workflows/Deploy-Documentation.yml |
Enables dispatch deployments and adds execution controls. |
.github/workflows/copilot-investigate.yml |
Separates issue selection, investigation, and privileged posting. |
.github/workflows/copilot-flake-review.yml |
Adds weekly uncached test replay, report validation, and model-attempt handling. |
.github/workflows/copilot-design-pass.yml |
Removes the unused design-pass workflow. |
.github/workflows/copilot-cleanup.yml |
Updates Node and prevents cancellation of active runs. |
.github/workflows/compile-loc.yml |
Removes the failing localization compilation workflow. |
.github/workflows/codeql-analysis.yml |
Adds PR concurrency and an analysis timeout. |
.github/workflows/check-ai-docs.yml |
Adds read-only permissions, concurrency, and a timeout. |
.github/copilot-instructions.md |
Regenerates manual graph-rebuild guidance. |
.github/aw/actions-lock.json |
Updates agentic-workflow setup pins. |
.gitattributes |
Removes the lockfile merge-driver attribute while retaining generated-file marking. |
Review effort: Balanced
Contributor
📊 Coverage CheckNo source files changed in this PR. |
…orkflows Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…in pr-ai-validation Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.

Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
884eaa7f403867bd578569a66671b89e26ae6d94884eaa7f403867bd578569a66671b89e26ae6d94(0 failures), including all four required checks (build (20.x),build (22.x),test,validate-pr),build (24.x),CodeQL,Standalone Ephemeral Checks,Check AI Docs,coverage,Chat Client E2E Tests, and the fullvscode-e2ematrix.↑ Live
workflow_dispatchE2E runs from this branch passed forpr-ai-validation.yml(46104832546positive pass withCLI_SUCCESS=true,CLI_MODEL=auto, fallback skipped, andrisk:mediumaccepted;46104749656negative path flagging title mismatch),update-knowledge-graphs.yml(46103640998uploadedknowledge-graphs-patch, 4.76 MB), andDeploy-Documentation.yml(46103643694confirmed non-maindispatch skips production deploy).↑ All 33 tests in
scripts/pr-ai-validation.test.mjs(including live Python verdict JSON extraction tests), 15/15ado-npm-publisher.test.cjs, 162/162 Vitest + 16/16 Pythonscripts/ephemeraltests,ruby -ryaml(23/23),actionlint, and idempotentgh aw compilepass.↓ Prod-mutating scheduled workflows (
copilot-flake-review.yml,copilot-investigate.yml,ISSUE_MANAGEMENT.yml,copilot-cleanup.yml, 3gh-aw.lock.ymlworkflows) and Entra-blocked workflows (version-release.yml,real-e2e.yml,standalone-ephemeral.yml,upload-templates.yml) were not dispatched live against production issues/PRs/releases and rely on static validation, local unit/Vitest runs, and the shared Copilot CLI auth/model pattern verified live in46104832546.Commit Type
Risk Level
What & Why
Cleans up dead and perpetually failing GitHub Actions workflows, repairs active workflow logic and security gaps, recompiles blocked
gh-awagentic lockfiles, and applies baseline reliability hardening (concurrency,timeout-minutes, least-privilegepermissions) across.github/workflows/in one PR — while preserving all four requiredmainchecks (build (20.x),build (22.x),test,validate-pr) and zero client/runtime code changes.1. Deleted 7 dead / zero-success workflows
production-build.yml(0/56 passes; superseded byversion-release.yml, expiredAUTOMATION_PAT, unpinnedad-m/github-push-action@master)Deploy-Standalone.yml(0/9 passes; superseded legacy static deploy)private-vsix-build.yml(0 runs ever; duplicated bytest.ymlandversion-release.yml)update-changelog.yml(0 runs ever; release notes are generated byversion-release.yml)compile-loc.yml(0/388 passes; expiredAUTOMATION_PATand direct push rejected bymainruleset)loc-auto-merge.yml(0/2,026 passes;--mergeconflicts with squash-only ruleset)copilot-design-pass.yml(0/102 passes;needs-designlabel unused)VERSION_RELEASE_MIGRATION.md,apps/docs/docs/Development/logging.md, andvscode-e2e.yml.2. Paused Entra/CA-blocked schedules & fixed release default
version-release.yml: Defaultedworkflow_dispatch.inputs.enable_blob_uploadtofalseso manual releases do not fail on disabledlauxe2etesting(AADSTS7000112) unless explicitly opted in; added non-cancellingconcurrency, jobtimeout-minutes(5/30/90/10), and minimal per-jobpermissions. Preserves Thursday scheduled releases and the Otto → ADO489908npm publish handoff.real-e2e.yml: Removed the 6-hour cron (AADSTS7000112on disabledlauxe2etesting), retainedworkflow_dispatch, added non-cancellingconcurrency,timeout-minutes(90/30), minimal per-jobpermissions, and acheck-reportsguard inmerge-reportsso 0 downloaded shard reports skips merge cleanly instead of crashing.standalone-ephemeral.yml(+scripts/ephemeral/github.test.mjs): Removed the 6-hour cron blocked by Conditional Access (AADSTS53003); preservedworkflow_run,pull_request,workflow_dispatch, and cleanup paths. Leftstandalone-ephemeral-build.ymlandstandalone-ephemeral-checks.ymluntouched.upload-templates.yml: Removedrepository_dispatch: [release]trigger; retainedworkflow_dispatch, added non-cancellingconcurrencyandtimeout-minutes: 30.3. Recompiled all 3
gh-awagentic workflows (v0.83.1→v1.2.2)daily-repo-status.lock.yml,issue-triage-agent.lock.yml, andissue-triage-feedback.lock.yml(plus.github/aw/actions-lock.jsonand.gitattributes) usinggh aw v1.2.2to clear the blockedv0.83.1runtime admission error.4. Fixed security & logic bugs in active workflows
pr-ai-validation.yml,copilot-flake-review.yml,copilot-investigate.yml(+scripts/pr-ai-validation.test.mjs): bumped@github/copilotCLI to1.0.115-4(inpr-ai-validation.yml), enabledS2STOKENS: true, replaced retired default models (claude-opus-4.8 claude-opus-4.6 gpt-5-mini) withauto claude-sonnet-5.5 gpt-5.4, added-s --no-custom-instructions --disable-builtin-mcps+json.JSONDecoder().raw_decodeverdict extraction (with stderr diagnostics on parse failure), reported actualCLI_MODELdynamically in the PR comment, and switchedLOGIC_APP_URLfrom plaintext public repo variablevars.PR_VALIDATION_LOGIC_APP_URLtosecrets.PR_VALIDATION_LOGIC_APP_URLonly (novarsfallback; fallback skips cleanly when unset and Copilot CLI remains primary), added PR-scopedconcurrency, bumpedactions/cache@v4→v5, preserved exact job namevalidate-pr, external contributorcore.setFailedgate, and step names. Added regression test asserting secret-only usage.update-knowledge-graphs.yml(+apps/docs/docs/Development/graphify.md,README.md,docs/ai-setup/shared.md, regeneratedCLAUDE.md&.github/copilot-instructions.md): Removedpush: mainand directgit push(always rejected withGH013); converted toworkflow_dispatchwithcontents: read,git add -Nto include newly added files, uploadingknowledge-graphs.patchviaactions/upload-artifact@v6with step-summary PR instructions.copilot-flake-review.yml: Moved from daily (timing out 14/15 runs at 20m) to weekly Sunday (0 3 * * 0) on Node 24 withtimeout-minutes: 60/20and non-cancellingconcurrency; builds workspace prerequisites once (pnpm turbo run build:lib), invokes Vitest directly per library (pnpm --dir "$pkg_dir" exec vitest run --retry=0 --reporter=json --outputFile=...) to avoid Turbo cache replay,--retrycollision with package scripts, and shared--outputFileclobbering; requires complete per-package JSON reports across all runs; validatesruns >= 2; tracks explicit fix-step success and resets partial edits on failed model attempts.copilot-investigate.yml: Reduced schedule from every 2h to every 6h; fixed brokenGITHUB_TOKENbot-label chaining and unusedSYSTEM_PROMPT(prompts/copilot-investigate.md); privilege-separated intoselect-issues(issues: read, restricting scheduled scan toOWNER/MEMBER/COLLABORATORissues and strictgithub-actions[bot]comment deduplication) →investigate(contents: read,copilot-requests: write,persist-credentials: false, no write token) →post-investigation(issues: write, re-checks bot deduplication, posts comment, then applies labels).Deploy-Documentation.yml: Fixedbuild_and_deploy_jobif:soworkflow_dispatchandrepository_dispatchdeploymain; added non-cancellingconcurrency,timeout-minutes(45/15), and per-jobpermissions.5. Hardened remaining active workflows
concurrency(cancel-in-progress: ${{ github.event_name == 'pull_request' }}), explicittimeout-minutes, and verified least-privilegepermissionstotest.yml,playwright.yml,pr-coverage.yml,codeql-analysis.yml,check-ai-docs.yml, andvscode-e2e.yml(contents: readafter auditing all 13 jobs).ISSUE_MANAGEMENT.ymlfrom hourly (0 * * * *) to daily (0 6 * * *) with non-cancellingconcurrencyandtimeout-minutes: 15(preserving both stale passes includingdaily-status).copilot-cleanup.ymlto Node 24 andcancel-in-progress: false.Post-merge admin follow-up
PR_VALIDATION_LOGIC_APP_URL, and delete the exposed plaintext repository variablePR_VALIDATION_LOGIC_APP_URL.AUTOMATION_PATandSTANDALONE_STATIC_WEB_APPafter confirming no external consumers remain.Impact of Change
mainand PRs, saves runner minutes via PR concurrency cancellation and sane schedules, restoresgh-awissue triage/status reports, and keeps all four required PR checks (build (20.x),build (22.x),test,validate-pr) unchanged.GITHUB_TOKENpermissions, privilege separation on AI issue investigation, secret-only Logic App fallback, bounded job timeouts, and ruleset-compliant Graphify patch generation.Test Plan
ruby -ryamlacross all 23 remaining.github/workflows/*.yml(23/23 valid)actionlintacross modified workflows (0 syntax/expression/shellcheck errors on changed code)gh aw compiletwice on all 3.mdworkflows (idempotent zero-diff verified)./scripts/generate-ai-docs.sh(30 files generated, clean diff)node --test scripts/pr-ai-validation.test.mjs(33/33 passed, including live Python execution tests for noisy Copilot CLI verdict JSON extraction)workflow_dispatchE2E on PR branch:pr-ai-validation.yml(46104832546: PASS in 29s withCLI_SUCCESS=true,CLI_MODEL=auto, Logic App fallback skipped,risk:mediumaccepted;46104749656: verified negative path on title mismatch)update-knowledge-graphs.yml(46103640998: PASS in 1m53s, uploadedknowledge-graphs-patch4.76 MB)Deploy-Documentation.yml(46103643694: confirmedgithub.ref == 'refs/heads/main'guard cleanly skips non-mainmanual dispatch)node --test scripts/ado-npm-publisher.test.cjs(15/15 passed)pnpm exec vitest run --config scripts/vitest.config.ts scripts/ephemeral apps/Standalone/vite-plugins/__test__(162/162 passed)python3 -B -m unittest discover -s scripts/ephemeral -p 'test_*.py'(16/16 passed)npx biome check scripts/pr-ai-validation.test.mjs scripts/ephemeral/github.test.mjs(0 issues)pnpm --dir libs/graph-layout exec vitest run --retry=0 --reporter=json --outputFile=/tmp/test-flake-verify.json(126 tests, valid JSON)Contributors
Krrish Mittal (@takyyon)
Screenshots/Videos
N/A (CI/workflow changes only)