chore: import upstream snapshot with attribution
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
Flake8 Lint / flake8 (push) Has been cancelled
Spell check CI / Spell_Check (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Check Policheck Scan result.
|
||||
.DESCRIPTION
|
||||
Helper script to check the Policheck result.
|
||||
If there is policheck failure, show the error and throw exception.
|
||||
#>
|
||||
|
||||
[CmdLetbinding()]
|
||||
param (
|
||||
[string]$policheckResult,
|
||||
[string]$raiseError = $true
|
||||
)
|
||||
|
||||
$result = Get-Content -Path $policheckResult | Measure-Object -Line;
|
||||
Write-Host("Number of errors found in this scan: " + ($result.Lines - 1));
|
||||
if ($raiseError -and ($result.Lines -gt 1))
|
||||
{
|
||||
Get-Content -Path $policheckResult;
|
||||
throw "Policheck scan completed successfully but there are issues to fix.";
|
||||
}
|
||||
# Read-Host "Press enter to finish the process and close this window";
|
||||
@@ -0,0 +1,7 @@
|
||||
<PoliCheckExclusions>
|
||||
<!-- All strings must be UPPER CASE -->
|
||||
<!--index-xxx.js is an auto-generated javascript file - skipped given it's not expected to be readable -->
|
||||
<Exclusion Type="FileName">SRC\PROMPTFLOW-CORE\PROMPTFLOW\CORE\_SERVING\STATIC\INDEX.JS</Exclusion>
|
||||
<Exclusion Type="FileType">.MIN.JS</Exclusion>
|
||||
<Exclusion Type="FolderPathFull">SRC\PROMPTFLOW-DEVKIT\PROMPTFLOW\_SDK\_SERVICE\STATIC\</Exclusion>
|
||||
</PoliCheckExclusions>
|
||||
Reference in New Issue
Block a user