-
-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add Directory.Build.props with shared build configuration (INFRA-001) #459
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <Project> | ||
|
|
||
| <PropertyGroup> | ||
| <Nullable>enable</Nullable> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <LangVersion>latest</LangVersion> | ||
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
| <Authors>laurentiu021</Authors> | ||
| <Company>laurentiu021</Company> | ||
| <Copyright>Copyright (c) 2026 laurentiu021</Copyright> | ||
| <RepositoryUrl>https://github.com/laurentiu021/SystemManager</RepositoryUrl> | ||
| <RepositoryType>git</RepositoryType> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> | ||
| </ItemGroup> | ||
|
Comment on lines
+15
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check NuGet for latest Microsoft.SourceLink.GitHub version
curl -s "https://api.nuget.org/v3-flatcontainer/microsoft.sourcelink.github/index.json" | jq -r '.versions[-1]'
# Check for security advisories
gh api graphql -f query='
{
securityVulnerabilities(first: 5, ecosystem: NUGET, package: "Microsoft.SourceLink.GitHub") {
nodes {
advisory {
summary
severity
publishedAt
}
vulnerableVersionRange
firstPatchedVersion {
identifier
}
}
}
}'Repository: laurentiu021/SystemManager Length of output: 195 🏁 Script executed: # Get all versions and filter for latest stable (non-preview)
curl -s "https://api.nuget.org/v3-flatcontainer/microsoft.sourcelink.github/index.json" | jq -r '.versions[] | select(contains("preview") | not)' | sort -V | tail -5Repository: laurentiu021/SystemManager Length of output: 115 🌐 Web query:
💡 Result: As of May 20, 2026, there are no known security vulnerabilities associated specifically with the Microsoft.SourceLink.GitHub NuGet package, including version 8.0.0 [1]. Microsoft.SourceLink.GitHub is a build-time tool used to map source code files to their locations in source control repositories [2]. It is a client-side library that runs during the build process to generate information used by debuggers (such as Visual Studio) to retrieve source code files [3]. It does not run as a service or application in production environments [1]. Security-related confusion regarding this package often stems from: 1. Vulnerabilities in broader.NET or GitHub-related infrastructure: High-profile security advisories involving.NET or the GitHub platform (such as CVE-2024-30105 [4], CVE-2024-30045 [5], or the more recent GitHub platform vulnerability CVE-2026-3854 [6]) are separate from the SourceLink tooling. 2. Supply chain security scanning: Automated security tools may occasionally flag dependencies or general NuGet packages, but independent security assessments of Microsoft.SourceLink.GitHub have consistently identified no known vulnerabilities or malicious behaviors in the package [1]. Starting with.NET SDK 8, Source Link functionality is included directly in the.NET SDK and enabled by default [2][7]. Consequently, explicit references to the Microsoft.SourceLink.GitHub NuGet package are no longer required for projects migrating to.NET 8 or newer [7]. If you are using an older project structure that relies on version 8.0.0, it remains safe to use [1], though moving to modern.NET SDK versions is the recommended practice [7]. Citations:
🌐 Web query:
💡 Result: As of May 20, 2026, the latest stable version of Microsoft.SourceLink.GitHub is 10.0.203 [1]. It is available on the NuGet Gallery [1]. While development continues in the official dotnet/sourcelink repository, version 10.0.203 is the current stable release [1]. Users are advised to check the NuGet Gallery directly for any future stable releases or preview versions [1][2]. Citations:
Update Version 8.0.0 is outdated; the latest stable release is 10.0.300. While no security vulnerabilities are reported for version 8.0.0, updating to the latest stable version captures bug fixes and improvements. Since SourceLink is a build-time tool with no runtime impact, this is a low-effort update. 🤖 Prompt for AI Agents |
||
|
|
||
| </Project> | ||
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.
Build reproducibility risk: Replace
LangVersion>latestwith an explicit version.Using
latestmakes the effective C# language version dependent on the installed SDK, causing builds to behave differently across machines and CI environments. A newer SDK can introduce breaking language changes or new diagnostics that failTreatWarningsAsErrors.📋 Recommended fix
Alternatively, pin to an explicit version like
12.0if you want maximum stability.📝 Committable suggestion
🤖 Prompt for AI Agents