Skip to content
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

Getting rid off sarif sdk from codebase #1011

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AllDwarf
Copy link
Collaborator

@AllDwarf AllDwarf commented Oct 1, 2024

  • DEP: Update dotnet version to supported versions
  • NEW: Remove sarif-sdk submodule and use nuget package instead
  • DEP: Update nugate packages to latest versions

src/BinaryParsers/PEBinary/ProgramDatabase/Pdb.cs Dismissed Show dismissed Hide dismissed
src/BinaryParsers/PEBinary/ProgramDatabase/Pdb.cs Dismissed Show dismissed Hide dismissed
src/BinaryParsers/PEBinary/ProgramDatabase/Pdb.cs Dismissed Show dismissed Hide dismissed
src/BinaryParsers/PEBinary/ProgramDatabase/Pdb.cs Dismissed Show dismissed Hide dismissed
pCallback);
}
[SupportedOSPlatform("windows")]
private void WindowsNativeLoadPdbFromPEUsingDia(string peOrPdbPath, string symbolPath, string localSymbolDirectories)

Check notice

Code scanning / CodeQL

Local scope variable shadows member Note

Local scope variable 'peOrPdbPath' shadows
Pdb.peOrPdbPath
.
Copy link
Collaborator

@mkacmar mkacmar left a comment

Choose a reason for hiding this comment

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

I see numerous scripts are being updated with path changes from netcoreapp3.1 to net8.0 - maybe extracting that to a variable / constant (since we have a mix of cmd, sh, pwsh) makes sense - up to you.

Something to consider - splitting 144f302 into multiple commits targeted at dependency updates for specific projects and removing sarif-sdk submodule would make it easier to review.

@@ -121,7 +121,6 @@ public ulong ReadLength(out bool is64bit)
/// <summary>
/// Reads the string from the current position in the stream.
/// </summary>
[HandleProcessCorruptedStateExceptions]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see this is no longer supported in .NET 8, but what are the implications of removing this attribute?

public const string Version = AssemblyVersion + Prerelease;
}
}
namespace Microsoft.CodeAnalysis.IL
Copy link
Collaborator

Choose a reason for hiding this comment

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

Trailing whitespaces.

@@ -15,18 +15,18 @@
<projectUrl>https://github.com/microsoft/binskim</projectUrl>
<tags>binary analysis binskim binscope security portable executable linkable format sdl devops devsecops</tags>
<iconUrl>https://go.microsoft.com/fwlink/?linkid=2008940</iconUrl>
<dependencies>
<group targetFramework=".NETStandard2.1">
<!-- <dependencies>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this intentional, or just WIP?

@@ -36,6 +36,7 @@ public async Task TestTaskAsync()
}

[TestMethod, TestCategory("NightlyTest")]
[Ignore("Skipping all tests in this class temporarily.")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume we're skipping these since the results are nondeterministic right now, what's our plan long term to tackle these? Additionally - can you please extract this change into a separate commit, it's rather hidden in a bunch of other changes right now.

```

#### Help command
The following command-lines invoke the general BinSkime help message. This message will display all the built-in ModernCop commands (help, analyze, capture, et al) for which more detailed help can be requested:
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/BinSkime/BinSkim/


**Example:** `binskim.exe analyze c:\bld\*.dll --recurse true --output MyRun.sarif`
#### Analyze Command
The primary function of BinSkim is to analyze Windows portable executables (.dlls, .exes, etc). To analyze a file, pass one or more arguments that resolve one or more portable executables.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are ELF and Mach-O intentionally not mentioned here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We may want to make the help a bit more cross-platform (i.e. .exe suffix in examples).

@AllDwarf AllDwarf force-pushed the users/marekaldorf/Separating_sarif_sdk_from_codebase branch from 5923dc8 to ecb42e4 Compare October 17, 2024 13:58
@AllDwarf AllDwarf self-assigned this Oct 17, 2024
and update dotnet to 8

Mid step for MSDIA and linux changes

Changes

Update project to target .NET 8.0 and remove references to .NET Core 3.1

Update README.md to simplify it with UserGuide.md usage and remove unnecessary docx file

Addigng classFactory for resource release

Remove ConcurrencyTests project and related files from the solution
@AllDwarf AllDwarf force-pushed the users/marekaldorf/Separating_sarif_sdk_from_codebase branch from ecb42e4 to f3d6d21 Compare November 26, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants