Skip to content

Commit ea6e3c9

Browse files
Migrate Security from generation to vidai/secrets-detection-autorest (#24467)
* Move Security to vidai/secrets-detection-autorest * Update ChangeLog.md --------- Co-authored-by: Vincent Dai <[email protected]>
1 parent 356972c commit ea6e3c9

File tree

258 files changed

+5662
-1644
lines changed

Some content is hidden

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

258 files changed

+5662
-1644
lines changed

src/Security/Security.Autorest/Az.Security.psm1

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,37 +47,41 @@
4747

4848
# Ask for the shared functionality table
4949
$VTable = Register-AzModule
50-
50+
5151
# Tweaks the pipeline on module load
5252
$instance.OnModuleLoad = $VTable.OnModuleLoad
5353

5454
# Following two delegates are added for telemetry
5555
$instance.GetTelemetryId = $VTable.GetTelemetryId
5656
$instance.Telemetry = $VTable.Telemetry
57-
57+
58+
# Delegate to sanitize the output object
59+
$instance.SanitizeOutput = $VTable.SanitizerHandler
60+
61+
# Delegate to get the telemetry info
62+
$instance.GetTelemetryInfo = $VTable.GetTelemetryInfo
5863

5964
# Tweaks the pipeline per call
6065
$instance.OnNewRequest = $VTable.OnNewRequest
61-
66+
6267
# Gets shared parameter values
6368
$instance.GetParameterValue = $VTable.GetParameterValue
64-
69+
6570
# Allows shared module to listen to events from this module
6671
$instance.EventListener = $VTable.EventListener
67-
72+
6873
# Gets shared argument completers
6974
$instance.ArgumentCompleter = $VTable.ArgumentCompleter
70-
75+
7176
# The name of the currently selected Azure profile
7277
$instance.ProfileName = $VTable.ProfileName
7378

74-
7579
# Load the custom module
7680
$customModulePath = Join-Path $PSScriptRoot './custom/Az.Security.custom.psm1'
7781
if(Test-Path $customModulePath) {
7882
$null = Import-Module -Name $customModulePath
7983
}
80-
84+
8185
# Export nothing to clear implicit exports
8286
Export-ModuleMember
8387

@@ -97,12 +101,12 @@
97101
# Load the last folder if no profile is selected
98102
$profileDirectory = $directories | Select-Object -Last 1
99103
}
100-
104+
101105
if($profileDirectory) {
102106
Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
103107
$exportsPath = $profileDirectory.FullName
104108
}
105-
109+
106110
if($exportsPath) {
107111
Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
108112
$cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath

src/Security/Security.Autorest/exports/Get-AzSecurityApiCollection.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ param(
9595
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
9696
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
9797
# Identity Parameter
98-
# .
9998
${InputObject},
10099

101100
[Parameter()]
@@ -110,7 +109,7 @@ param(
110109
[Parameter(DontShow)]
111110
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
112111
[System.Management.Automation.SwitchParameter]
113-
# Wait forNET debugger to attach
112+
# Wait for .NET debugger to attach
114113
${Break},
115114

116115
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnector.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ param(
8181
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8282
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8383
# Identity Parameter
84-
# .
8584
${InputObject},
8685

8786
[Parameter()]
@@ -96,7 +95,7 @@ param(
9695
[Parameter(DontShow)]
9796
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
9897
[System.Management.Automation.SwitchParameter]
99-
# Wait forNET debugger to attach
98+
# Wait for .NET debugger to attach
10099
${Break},
101100

102101
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrg.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ param(
8686
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8787
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8888
# Identity Parameter
89-
# .
9089
${InputObject},
9190

9291
[Parameter()]
@@ -101,7 +100,7 @@ param(
101100
[Parameter(DontShow)]
102101
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
103102
[System.Management.Automation.SwitchParameter]
104-
# Wait forNET debugger to attach
103+
# Wait for .NET debugger to attach
105104
${Break},
106105

107106
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ param(
6363
[Parameter(DontShow)]
6464
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
6565
[System.Management.Automation.SwitchParameter]
66-
# Wait forNET debugger to attach
66+
# Wait for .NET debugger to attach
6767
${Break},
6868

6969
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsProject.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ param(
9393
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
9494
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
9595
# Identity Parameter
96-
# .
9796
${InputObject},
9897

9998
[Parameter()]
@@ -108,7 +107,7 @@ param(
108107
[Parameter(DontShow)]
109108
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
110109
[System.Management.Automation.SwitchParameter]
111-
# Wait forNET debugger to attach
110+
# Wait for .NET debugger to attach
112111
${Break},
113112

114113
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorAzureDevOpsRepo.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ param(
100100
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
101101
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
102102
# Identity Parameter
103-
# .
104103
${InputObject},
105104

106105
[Parameter()]
@@ -115,7 +114,7 @@ param(
115114
[Parameter(DontShow)]
116115
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
117116
[System.Management.Automation.SwitchParameter]
118-
# Wait forNET debugger to attach
117+
# Wait for .NET debugger to attach
119118
${Break},
120119

121120
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorDevOpsConfiguration.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ param(
8080
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8181
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8282
# Identity Parameter
83-
# .
8483
${InputObject},
8584

8685
[Parameter()]
@@ -95,7 +94,7 @@ param(
9594
[Parameter(DontShow)]
9695
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
9796
[System.Management.Automation.SwitchParameter]
98-
# Wait forNET debugger to attach
97+
# Wait for .NET debugger to attach
9998
${Break},
10099

101100
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwner.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ param(
8686
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8787
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8888
# Identity Parameter
89-
# .
9089
${InputObject},
9190

9291
[Parameter()]
@@ -101,7 +100,7 @@ param(
101100
[Parameter(DontShow)]
102101
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
103102
[System.Management.Automation.SwitchParameter]
104-
# Wait forNET debugger to attach
103+
# Wait for .NET debugger to attach
105104
${Break},
106105

107106
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubOwnerAvailable.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ param(
6363
[Parameter(DontShow)]
6464
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
6565
[System.Management.Automation.SwitchParameter]
66-
# Wait forNET debugger to attach
66+
# Wait for .NET debugger to attach
6767
${Break},
6868

6969
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitHubRepo.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ param(
9393
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
9494
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
9595
# Identity Parameter
96-
# .
9796
${InputObject},
9897

9998
[Parameter()]
@@ -108,7 +107,7 @@ param(
108107
[Parameter(DontShow)]
109108
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
110109
[System.Management.Automation.SwitchParameter]
111-
# Wait forNET debugger to attach
110+
# Wait for .NET debugger to attach
112111
${Break},
113112

114113
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroup.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ param(
8686
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8787
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8888
# Identity Parameter
89-
# .
9089
${InputObject},
9190

9291
[Parameter()]
@@ -101,7 +100,7 @@ param(
101100
[Parameter(DontShow)]
102101
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
103102
[System.Management.Automation.SwitchParameter]
104-
# Wait forNET debugger to attach
103+
# Wait for .NET debugger to attach
105104
${Break},
106105

107106
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabGroupAvailable.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ param(
6363
[Parameter(DontShow)]
6464
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
6565
[System.Management.Automation.SwitchParameter]
66-
# Wait forNET debugger to attach
66+
# Wait for .NET debugger to attach
6767
${Break},
6868

6969
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabProject.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ param(
9393
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
9494
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
9595
# Identity Parameter
96-
# .
9796
${InputObject},
9897

9998
[Parameter()]
@@ -108,7 +107,7 @@ param(
108107
[Parameter(DontShow)]
109108
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
110109
[System.Management.Automation.SwitchParameter]
111-
# Wait forNET debugger to attach
110+
# Wait for .NET debugger to attach
112111
${Break},
113112

114113
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Get-AzSecurityConnectorGitLabSubgroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ param(
6969
[Parameter(DontShow)]
7070
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
7171
[System.Management.Automation.SwitchParameter]
72-
# Wait forNET debugger to attach
72+
# Wait for .NET debugger to attach
7373
${Break},
7474

7575
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOffboard.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ param(
8585
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8686
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8787
# Identity Parameter
88-
# .
8988
${InputObject},
9089

9190
[Parameter()]
@@ -100,7 +99,7 @@ param(
10099
[Parameter(DontShow)]
101100
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
102101
[System.Management.Automation.SwitchParameter]
103-
# Wait forNET debugger to attach
102+
# Wait for .NET debugger to attach
104103
${Break},
105104

106105
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/Invoke-AzSecurityApiCollectionApimOnboard.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ param(
8585
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Path')]
8686
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityIdentity]
8787
# Identity Parameter
88-
# .
8988
${InputObject},
9089

9190
[Parameter()]
@@ -106,7 +105,7 @@ param(
106105
[Parameter(DontShow)]
107106
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
108107
[System.Management.Automation.SwitchParameter]
109-
# Wait forNET debugger to attach
108+
# Wait for .NET debugger to attach
110109
${Break},
111110

112111
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/New-AzSecurityAwsEnvironmentObject.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ param(
4646
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
4747
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAwsOrganizationalData]
4848
# The AWS account's organizational data.
49-
# .
5049
${OrganizationalData},
5150

5251
[Parameter()]

src/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ param(
132132
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
133133
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnectorEnvironment]
134134
# The security connector environment data.
135-
# .
136135
${EnvironmentData},
137136

138137
[Parameter()]
@@ -171,7 +170,6 @@ param(
171170
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
172171
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICloudOffering[]]
173172
# A collection of offerings for the security connector.
174-
# .
175173
${Offering},
176174

177175
[Parameter()]
@@ -193,7 +191,7 @@ param(
193191
[Parameter(DontShow)]
194192
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
195193
[System.Management.Automation.SwitchParameter]
196-
# Wait forNET debugger to attach
194+
# Wait for .NET debugger to attach
197195
${Break},
198196

199197
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/New-AzSecurityConnectorActionableRemediationObject.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,12 @@ param(
4848
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
4949
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ITargetBranchConfiguration]
5050
# Repository branch configuration for PR Annotations.
51-
# .
5251
${BranchConfiguration},
5352

5453
[Parameter()]
5554
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
5655
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ICategoryConfiguration[]]
5756
# Gets or sets list of categories and severity levels.
58-
# .
5957
${CategoryConfiguration},
6058

6159
[Parameter()]

src/Security/Security.Autorest/exports/New-AzSecurityConnectorDevOpsConfiguration.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ param(
9090
[Parameter(DontShow)]
9191
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Runtime')]
9292
[System.Management.Automation.SwitchParameter]
93-
# Wait forNET debugger to attach
93+
# Wait for .NET debugger to attach
9494
${Break},
9595

9696
[Parameter(DontShow)]

src/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmAwsOfferingObject.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ param(
7373
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
7474
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmAwsOfferingVMScannersConfigurationExclusionTags]
7575
# VM tags that indicates that VM should not be scanned.
76-
# .
7776
${ConfigurationExclusionTag},
7877

7978
[Parameter()]

src/Security/Security.Autorest/exports/New-AzSecurityDefenderCspmGcpOfferingObject.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ param(
6666
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
6767
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderCspmGcpOfferingVMScannersConfigurationExclusionTags]
6868
# VM tags that indicates that VM should not be scanned.
69-
# .
7069
${ConfigurationExclusionTag},
7170

7271
[Parameter()]

src/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersAwsOfferingObject.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ param(
6767
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
6868
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersAwsOfferingVMScannersConfigurationExclusionTags]
6969
# VM tags that indicates that VM should not be scanned.
70-
# .
7170
${ConfigurationExclusionTag},
7271

7372
[Parameter()]

src/Security/Security.Autorest/exports/New-AzSecurityDefenderForServersGcpOfferingObject.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ param(
5353
[Microsoft.Azure.PowerShell.Cmdlets.Security.Category('Body')]
5454
[Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDefenderForServersGcpOfferingVMScannersConfigurationExclusionTags]
5555
# VM tags that indicate that VM should not be scanned.
56-
# .
5756
${ConfigurationExclusionTag},
5857

5958
[Parameter()]

0 commit comments

Comments
 (0)