Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private static void ExtractZip(Stream source, string fullTarget, int maxFileCoun
throw new InvalidDataException($"Skill archive exceeds the maximum allowed file count ({maxFileCount}).");
}

string? destination = ResolveDestination(fullTarget, entry.FullName);
string? destination = ResolveDestination(fullTarget, entry.FullName); // CodeQL [SM02729] ResolveDestination rejects paths outside fullTarget.
if (destination is null)
{
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
using System.Globalization;
using System.IO;
using System.Linq;
#pragma warning disable IDE0005 // Required by Windows builds for Roslyn APIs.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
#pragma warning restore IDE0005

namespace Microsoft.Agents.AI.FeatureRegistry.UnitTests;

Expand Down Expand Up @@ -431,5 +433,5 @@ private static void AssertNoErrors(IReadOnlyCollection<string> errors)

private sealed record RegistryEntry(int Index, string Id);

private sealed record FeatureDeclaration(string Owner, string MemberName, int Index, string FilePath);
private readonly record struct FeatureDeclaration(string Owner, string MemberName, int Index, string FilePath);
}
Loading