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

.NET Core-Support #726

Closed
ckotzbauer opened this issue Dec 31, 2021 · 3 comments · Fixed by #951
Closed

.NET Core-Support #726

ckotzbauer opened this issue Dec 31, 2021 · 3 comments · Fixed by #951
Labels
enhancement New feature or request

Comments

@ckotzbauer
Copy link
Contributor

What would you like to be added:
Hi Syft-Team,
are there any plans to support generating SBOMs for .NET Core projects?

Why is this needed:
.NET Core is a widely used ecosystem.

Additional context:

@ckotzbauer ckotzbauer added the enhancement New feature or request label Dec 31, 2021
@luhring
Copy link
Contributor

luhring commented Mar 28, 2022

Hi @ckotzbauer, I'd love to see this! I don't have much experience with .NET Core personally. It'd be good for us to capture the details of what we'd need to scan here in the issue.

@ckotzbauer
Copy link
Contributor Author

@luhring
I have a couple of questions in mind for that:

  • Should the cataloguing happen only in compiled state or from source too? (When source is relevant too, this would be better to handle with Support cataloging NuGet packages #373)
  • What information is needed to generate a spec-compliant SBOM? Dependencies, Versions, Licenses, ...

When the project is compiled, I think the most important thing would be the .deps.json file which is generated from dotnet and placed at the compilation-target dir.

This is a very basic example from the microsoft docs (e.g. Package licenses are not covered there):

{
  "runtimeTarget": {
    "name": ".NETCoreApp,Version=v3.0",
    "signature": ""
  },
  "compilationOptions": {},
  "targets": {
    ".NETCoreApp,Version=v3.0": {
      "store.manifest/1.0.0": {
        "dependencies": {
          "StartupDiagnostics": "1.0.0"
        },
        "runtime": {
          "store.manifest.dll": {}
        }
      },
      "StartupDiagnostics/1.0.0": {
        "runtime": {
          "lib/netcoreapp3.0/StartupDiagnostics.dll": {
            "assemblyVersion": "1.0.0.0",
            "fileVersion": "1.0.0.0"
          }
        }
      }
    }
  },
  "libraries": {
    "store.manifest/1.0.0": {
      "type": "project",
      "serviceable": false,
      "sha512": ""
    },
    "StartupDiagnostics/1.0.0": {
      "type": "package",
      "serviceable": true,
      "sha512": "sha512-xrhzuNSyM5/f4ZswhooJ9dmIYLP64wMnqUJSyTKVDKDVj5T+qtzypl8JmM/aFJLLpYrf0FYpVWvGujd7/FfMEw==",
      "path": "startupdiagnostics/1.0.0",
      "hashPath": "startupdiagnostics.1.0.0.nupkg.sha512"
    }
  }
}

@ckotzbauer
Copy link
Contributor Author

@luhring Opened a PR #951 with initial support

@spiffcs spiffcs added this to OSS Apr 28, 2022
@spiffcs spiffcs moved this to In Progress in OSS Apr 28, 2022
@spiffcs spiffcs moved this from In Progress to Triage in OSS Apr 28, 2022
Repository owner moved this from Triage (Comments or Progress Made) to Done in OSS May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants