Coder Social home page Coder Social logo

Comments (9)

karolswdev avatar karolswdev commented on August 15, 2024 1

We incorporated the creating of a NuGet.Config file in our CI/CD pipeline to ensure private package reference resolution. The entire content of the NuGet.Config file is stored in a GItHub secret.

This is our step:

- name: Create Nuget.Config file πŸ”‘
      run: |
        cat << EOF > ./NuGet.Config
        ${{ secrets.nuget_config }}
        EOF

from cyclonedx-dotnet.

coderpatros avatar coderpatros commented on August 15, 2024 1

Ah, that might actually be the same issue as #74.

I have a fix pending merge in PR #75.

from cyclonedx-dotnet.

Zargath avatar Zargath commented on August 15, 2024 1

@coderpatros, I just tested your latest PR merge (built it locally) and it looks to have fixed my issue! πŸŽ‰The package information from my private feed is there, with the description this time, and its child dependencies are now included in that bom.

Thanks for the quick fix!

Edouard

from cyclonedx-dotnet.

Zargath avatar Zargath commented on August 15, 2024 1

Hi @coderpatros, Just tested with v0.9.2, working as expected now!

Thank you!

from cyclonedx-dotnet.

coderpatros avatar coderpatros commented on August 15, 2024

Hi @Zargath. Internally it uses dotnet restore so it should pick up any configured nuget feeds, credentials and credential providers available to the standard restore task.

Are you getting this running it locally, or in a CI/CD pipeline?

The easiest way, I've come across, to edit your nuget sources for credentials is to use the nuget sources command https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-sources

from cyclonedx-dotnet.

coderpatros avatar coderpatros commented on August 15, 2024

And the reason for the change is that previously any direct or transitive dependencies in your private nuget packages were not being added to the BOM.

from cyclonedx-dotnet.

Zargath avatar Zargath commented on August 15, 2024

Hi @coderpatros,
Thanks for the quick response! I look forward to being able to use the update since we have been creating a BOM for the private feed projects as well to be scanned separately.

I initially received the error in the CI pipeline and I've been able to reproduce it locally. We use Azure Active directory integration for our authentication. dotnet restore works without a hitch and the source is properly configured in the dotnet sources listing. No credentials are stored in the NuGet.config file for this source.

This is the original error I received that I get locally as well when I don't specify the feed url as a parameter to CycloneDX.
image

from cyclonedx-dotnet.

Zargath avatar Zargath commented on August 15, 2024

Ohhh that does look like it would fix my issue as well!

from cyclonedx-dotnet.

coderpatros avatar coderpatros commented on August 15, 2024

@Zargath this should be fixed now in v0.9.2. Can you please confirm and close this issue if it has. Thanks

from cyclonedx-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.