-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable core function for archive enumeration/scanning. #2837
base: main
Are you sure you want to change the base?
Conversation
src/Sarif/ArtifactProvider.cs
Outdated
|
||
if (ExtensionsAllowList != null) | ||
{ | ||
return !ExtensionsAllowList.Contains(extension); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's surprising to me that the deny list is ignored if there is an allow list.
If users are required to use one or the other but not both, then perhaps we should check that they don't try to use both.
src/Sarif/HashData.cs
Outdated
@@ -1,3 +1,4 @@ | |||
|
|||
// Copyright (c) Microsoft. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
src/Sarif/SarifExtensionMethods.cs
Outdated
@@ -253,12 +253,20 @@ public static string GetFileName(this Uri uri) | |||
return newAbsoluteUri.AbsolutePath.Split('/').Last(); | |||
} | |||
|
|||
if (uri.Query != null) | |||
{ | |||
return uri.Query; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would the query information be considered the file name?
src/Sarif/ZipArchiveArtifact.cs
Outdated
} | ||
|
||
this.uri = baseUri != null | ||
? new Uri($"{baseUri}?{entry.FullName}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
return entry.Open(); | ||
} | ||
catch (InvalidDataException) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
catch(InvalidDataException) | ||
{ | ||
// TBD log corrupt zip file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just saw that this is a draft. Silly GitHub sent me email about it. Sorry if you weren't ready for feedback. |
No description provided.