Add a baseline for VMR binary scan (#15359)

Co-authored-by: Premek Vysoky <premek.vysoky@microsoft.com>
Co-authored-by: Michael Simons <msimons@microsoft.com>
This commit is contained in:
Djuradj Kurepa 2023-01-30 19:19:05 +01:00 committed by GitHub
parent eee3d28220
commit 64d4a1a74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 6 deletions

View file

@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"microsoft.dotnet.darc": {
"version": "1.1.0-beta.23074.3",
"version": "1.1.0-beta.23077.3",
"commands": [
"darc"
]

View file

@ -205,13 +205,13 @@
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>3900335a25247d931fc62a62a1ebc30acbb5403d</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23074.3">
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23077.3">
<Uri>https://github.com/dotnet/arcade-services</Uri>
<Sha>7f00b18a4e98088f201fc2baf8a7a16f3371f88f</Sha>
<Sha>a018eaa016d2132265bfafdcb58d8cb35da6d567</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23074.3">
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23077.3">
<Uri>https://github.com/dotnet/arcade-services</Uri>
<Sha>7f00b18a4e98088f201fc2baf8a7a16f3371f88f</Sha>
<Sha>a018eaa016d2132265bfafdcb58d8cb35da6d567</Sha>
</Dependency>
<Dependency Name="Microsoft.Extensions.Logging.Console" Version="8.0.0-alpha.1.22557.12">
<Uri>https://github.com/dotnet/runtime</Uri>

View file

@ -30,7 +30,7 @@
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/arcade-services -->
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23074.3</MicrosoftDotNetDarcLibVersion>
<MicrosoftDotNetDarcLibVersion>1.1.0-beta.23077.3</MicrosoftDotNetDarcLibVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependency from https://github.com/dotnet/winforms -->

View file

@ -36,6 +36,7 @@ stages:
./.dotnet/dotnet darc vmr scan-binary-files
--vmr "$(Build.SourcesDirectory)"
--tmp "$(Agent.TempDirectory)"
--baseline-file "src/VirtualMonoRepo/allowed-binaries.txt"
|| (echo '##[error]Found binaries in the VMR' && exit 1)
displayName: Scan for binaries
workingDirectory: $(Build.SourcesDirectory)/src/installer

View file

@ -0,0 +1,55 @@
*.bmp
*.docx
*.gif
*.ico
*.jpg
*.JPG
*.pdf
*.png
*.PNG
*.rtf
*.snk
*.vsd
*.vsdx
*.xlsx
**/test/*
**/Test/*
**/Test/*
**/testCert*.pfx
**/TestCert*.pfx
**/tests/*
src/arcade/src/Microsoft.DotNet.SignTool.Tests/*
src/aspnetcore/**/samples/*
src/aspnetcore/**/TestCertificates/*
src/aspnetcore/src/*.eot
src/aspnetcore/src/*.otf
src/aspnetcore/src/*.ttf
src/aspnetcore/src/*.woff
src/aspnetcore/src/*.woff2
src/aspnetcore/src/Components/Web.JS/dist/Release/blazor.server.js # JavaScript file with a null byte
src/aspnetcore/src/Components/Web.JS/dist/Release/blazor.webview.js # JavaScript file with a null byte
src/aspnetcore/src/ProjectTemplates/Web.ProjectTemplates/**/app.db
src/aspnetcore/src/submodules/spa-templates/**/app.db
src/fsharp/**/signedtests/*
src/fsharp/src/fsi/fsi.res # Icon
src/msbuild/src/Tasks.UnitTests/*
src/razor/**/SampleApp/**/fonts/*
src/roslyn/**/CodeAnalysisTest/*
src/runtime/src/libraries/System.Diagnostics.EventLog/src/Messages/EventLogMessages.res # Icon
src/runtime/src/mono/wasm/testassets/*
src/runtime/src/native/external/brotli/common/dictionary.bin.br
src/sdk/src/Assets/TestProjects/*
src/source-build-externals/src/azure-activedirectory-identitymodel-extensions-for-dotnet/build/strongNameBypass.reg # UTF16-LE text file
src/source-build-externals/src/azure-activedirectory-identitymodel-extensions-for-dotnet/build/strongNameBypass2.reg # UTF16-LE text file
src/source-build-externals/src/humanizer/src/Humanizer.Tests*
src/source-build-externals/src/newtonsoft-json/Src/Newtonsoft.Json.Tests/SpaceShipV2.bson