Skip to content

Conversation

@AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Oct 9, 2025

Enable assetless build
Fix BinSkim filter

Fixes #34814

baselineFile: $(Build.SourcesDirectory)\.config\guardian\.gdnbaselines
binskim:
scanOutputDirectoryOnly: true
analyzeTargetGlob: '+:f|artifacts/bin/**/Microsoft.EntityFrameworkCore*.dll;+:f|artifacts/bin/**/Microsoft.Data.Sqlite*.dll;+:f|artifacts/bin/**/ef.exe;+:f|artifacts/bin/**/dotnet-ef.exe;-:f|artifacts/bin/**/shims/**/*.exe;'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works fine in the main job, but fails in Publish Assets:
##[warning]Could not parse glob pattern +:f|artifacts\bin\**\Microsoft.EntityFrameworkCore*.dll;+:f|artifacts\bin\**\Microsoft.Data.Sqlite*.dll;+:f|artifacts\bin\**\ef.exe;+:f|artifacts\bin\**\dotnet-ef.exe;-:f|artifacts\bin\**\shims\**\*.exe; for argument Target. The value will be passed to the tool without resolution.

https://dev.azure.com/dnceng/internal/_build/results?buildId=2812219&view=logs&j=d17d50ef-afac-5d4b-95a6-3014ce5cf7a4&t=b62a0cf6-b51e-5dde-5729-4c6f59f07519&l=80

@mmitche Any ideas?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the official build template will eventually be an asset-less build and not produce anything anymore. This means we shouldn't run binskim or other tools in there.

BinSkim, CG and others compliance tools are now run from the VMR which should give us sufficient coverage. If we still want to run them in this individual repository, then we would need to do that in that other internal pipeline.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but we still need to do it for ef6 as that is not part of VMR and has the same issue

Also, do we even need to set enablePublishBuildAssets: true for efcore?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, do we even need to set enablePublishBuildAssets: true for efcore?

Don't think so.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll likely continue running compliance tools in this pipeline until GA to avoid disruptions

@AndriySvyryd AndriySvyryd enabled auto-merge (squash) October 10, 2025 21:24
@AndriySvyryd AndriySvyryd merged commit f07ec89 into release/10.0 Oct 10, 2025
7 checks passed
@AndriySvyryd AndriySvyryd deleted the SplitPipeline branch October 10, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants