Skip to content

Commit 8ee980d

Browse files
dilanbhallaCopilot
andcommitted
Split bulk PowerShell framework models into opt-in pack to shrink MRVA payload
The microsoft/powershell-all library shipped 3283 generated framework data-extension files (~15.4 MB, 89% of the compiled pack), which inflated the MRVA query-pack submission body to ~2.47 MB base64 and caused variant-analysis submit timeouts for PowerShell queries. Move the bulk of the generated typemodels into a new opt-in model pack microsoft/powershell-frameworks-generated (extensionTargets: microsoft/powershell-all). The security-relevant core (System base, Management.Automation, IO, Net, Data/SqlClient, Security, Diagnostics.Process, plus hand-authored/internal models) stays in powershell-all. Since codeQL.runningQueries.useExtensionPacks defaults to none, the opt-in pack is not bundled into MRVA by default, cutting the default submit body to ~1.44 MB base64. Full coverage is still available via useExtensionPacks: all. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 59eff31 commit 8ee980d

2,426 files changed

Lines changed: 18 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codeql-workspace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ provide:
1919
- "misc/suite-helpers/qlpack.yml"
2020
- ".github/codeql/extensions/**/codeql-pack.yml"
2121
- "actions/ql/extensions/**/qlpack.yml"
22+
- "powershell/ql/extensions/**/qlpack.yml"
2223
- "iac/ql/src/qlpack.yml"
2324
versionPolicies:
2425
default:

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Accessibility.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Accessibility.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/IEHost.Execute.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/IEHost.Execute.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.Activities.Build.Debugger.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.Activities.Build.Debugger.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.Activities.Build.Expressions.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.Activities.Build.Expressions.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.Activities.Build.Validation.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.Activities.Build.Validation.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.Activities.Build.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.Activities.Build.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.Aspnet.Snapin.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.Aspnet.Snapin.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.Build.Tasks.Windows.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.Build.Tasks.Windows.typemodel.yml

File renamed without changes.

powershell/ql/lib/semmle/code/powershell/frameworks/generated/Microsoft.CSharp.Activities.typemodel.yml renamed to powershell/ql/extensions/frameworks-generated/ext/Microsoft.CSharp.Activities.typemodel.yml

File renamed without changes.

0 commit comments

Comments
 (0)