forked from microsoft/promptflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable compliance check ci but it won't pass now for vulnerability issue - either `--extra-index-url` is not allowed or there are vulnerable dependencies from promptflow sdk. Successful build with all requirements cleared: [link](https://msdata.visualstudio.com/Vienna/_build/results?buildId=101788015&view=results) failed build with policy check failed: [link](https://msdata.visualstudio.com/Vienna/_build/results?buildId=101788648&view=results)
- Loading branch information
Showing
27 changed files
with
88 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Pipeline link: https://dev.azure.com/msdata/Vienna/_build?definitionId=26179&_a=summary | ||
parameters: | ||
- name: policyCulture | ||
displayName: "Policy Culture" | ||
type: string | ||
# The culture used to run policy check scan, can be region codes separated by comma, e.g. 'en-US,de-DE' | ||
default: 'en-US' | ||
|
||
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r) # Configure run or build numbers | ||
|
||
variables: | ||
- name: sourceLocation | ||
value: $(System.DefaultWorkingDirectory) | ||
|
||
trigger: | ||
- main | ||
- releases/* | ||
|
||
pool: | ||
vmImage: windows-latest | ||
|
||
steps: | ||
- checkout: self | ||
|
||
# https://eng.ms/docs/microsoft-security/cloud-ecosystem-security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/sdl-azdo-extension/PoliCheck-build-task | ||
- task: PoliCheck@2 | ||
inputs: | ||
targetType: 'F' | ||
targetArgument: '$(sourceLocation)' | ||
optionsPE: '1' | ||
optionsUEPATH: '$(sourceLocation)/scripts/compliance-check/user_exclusion.xml' | ||
result: '$(sourceLocation)/scripts/compliance-check/result.tsv' | ||
optionsXCLASS: 'Geopolitical' | ||
|
||
- task: PowerShell@2 | ||
inputs: | ||
targetType: 'filePath' | ||
filePath: '$(sourceLocation)/scripts/compliance-check/Check-PolicheckScan.ps1' | ||
arguments: > | ||
-policheckResult $(sourceLocation)/scripts/compliance-check/result.tsv | ||
displayName: 'Check result' | ||
|
||
- task: PublishPipelineArtifact@1 | ||
condition: failed() | ||
inputs: | ||
targetPath: '$(sourceLocation)/scripts/compliance-check/result.tsv' | ||
artifactName: 'compliance-check-result' | ||
publishLocation: 'pipeline' | ||
|
||
- task: CredScan@3 | ||
displayName: 'CredScan' | ||
inputs: | ||
scanFolder: '$(sourceLocation)' |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools | ||
python-dotenv |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools | ||
bs4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
1 change: 0 additions & 1 deletion
1
examples/flows/evaluation/eval-classification-accuracy/requirements.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
1 change: 0 additions & 1 deletion
1
examples/flows/evaluation/eval-entity-match-rate/requirements.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
This file contains 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
1 change: 0 additions & 1 deletion
1
examples/flows/evaluation/eval-perceived-intelligence/requirements.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools | ||
tiktoken | ||
|
1 change: 0 additions & 1 deletion
1
examples/flows/standard/basic-with-builtin-llm/requirements.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools | ||
python-dotenv |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow[azure] | ||
promptflow-tools | ||
python-dotenv |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow[azure] | ||
promptflow-tools | ||
python-dotenv |
1 change: 0 additions & 1 deletion
1
examples/flows/standard/customer-intent-extraction/requirements.txt
This file contains 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
1 change: 0 additions & 1 deletion
1
examples/flows/standard/flow-with-additional-includes/requirements.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow[azure] | ||
promptflow-tools | ||
bs4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow[azure] | ||
promptflow-tools | ||
bs4 |
1 change: 0 additions & 1 deletion
1
examples/flows/standard/named-entity-recognition/requirements.txt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow | ||
promptflow-tools |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow[azure] | ||
promptflow-tools | ||
bs4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# remove when we publish to pypi | ||
--extra-index-url https://azuremlsdktestpypi.azureedge.net/promptflow/ | ||
promptflow[azure]==0.0.103036498 | ||
promptflow[azure] | ||
promptflow-tools==0.1.0.b5 | ||
python-dotenv | ||
bs4 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<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\PROMPTFLOW\_SDK\_SERVING\STATIC\INDEX-AF571BFB.JS</Exclusion> | ||
</PoliCheckExclusions> |
This file contains 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