Skip to content

Commit 4ce3960

Browse files
committed
Suppress the warning as this is checked a few lines below this but the scanner can't figure that out
1 parent 7b0b368 commit 4ce3960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tasks/sdk-tasks/ExtractArchiveToDirectory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public override bool Execute()
8787
{
8888
if (ShouldExtractItem(entry.FullName))
8989
{
90-
string destinationPath = Path.Combine(DestinationDirectory, entry.FullName);
90+
string destinationPath = Path.Combine(DestinationDirectory, entry.FullName); // codeql [SM02729] This is checked in the CheckDestinationPath method below before being used
9191
string destinationFileName = GetFullDirectoryPathWithSeperator(destinationPath);
9292
string fullDestDirPath = GetFullDirectoryPathWithSeperator(DestinationDirectory);
9393

0 commit comments

Comments
 (0)