Skip to content

Commit 3ee439b

Browse files
committed
Skipping insecure files check for unstable OSes
1 parent f88a1e2 commit 3ee439b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/Microsoft.DotNet.Docker.Tests/ProductImageTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ protected void VerifyCommonInsecureFiles(ProductImageData imageData)
4747
return;
4848
}
4949

50+
if (imageData.OS.IsUnstable)
51+
{
52+
OutputHelper.WriteLine("Skipping insecure files check for unstable OS."
53+
+ " Remove this check when https://github.com/dotnet/dotnet-docker/issues/7054 is resolved.");
54+
return;
55+
}
56+
5057
string rootFsPath = imageData.IsDistroless ? "/rootfs" : "/";
5158

5259
string worldWritableDirectoriesWithoutStickyBitCmd = $@"find {rootFsPath} -xdev -type d \( -perm -0002 -a ! -perm -1000 \)";

0 commit comments

Comments
 (0)