Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    ProGet Unable to publish SBOM from pgutil

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 52 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Ashley
      last edited by Ashley

      Hi,

      I am trialling the SBOM functionality in ProGet using pgutil builds scan but it errors when trying to publish the SBOM to ProGet.

       pgutil builds scan --source=$Source --api-key=$ApiKey --input=$ProjectPath --project-name=$ProjectName --version=$ReleaseNumber
      Scanning for dependencies in .\REDACTED.csproj...
      Publishing SBOM to ProGet...
      Server responded with InternalServerError (500): 547`16`0`Projects_CreateOrUpdateProject`44`The INSERT statement conflicted with the CHECK constraint "CK__Projects__Project_Name". The conflict occurred in database "REDACTED", table "dbo.Projects", column 'Project_Name'.
      Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0.
      

      Server: ProGet 2025.25 (Build 11)
      Database: Microsoft SQL Server 2019
      PgUtil: 2.2.7

      I am able to create a project from the Web UI, but the pgutil error is still present after manually creating the project in ProGet.

      1 Reply Last reply Reply Quote 0
      • Dan_WoolfD Offline
        Dan_Woolf inedo-engineer
        last edited by

        Hi @Ashley,

        I took a look into this error, and the constraint that is failing only checks for the Project_Name to not be an empty string. Based on your pgutil command, I'm guessing $ProjectName is set to null or an empty string. Can you verify that $ProjectName is not null, empty, or whitespace?

        Thanks,
        Dan

        1 Reply Last reply Reply Quote 0
        • A Offline
          Ashley
          last edited by

          Hi @Dan_Woolf

          I had to restart my computer so I lost my PowerShell variables, but I'm going to say you were correct. I ran it again and didn't get the errors - my bad!

          This might be for a separate thread, but after providing the correct inputs 🤦, ProGet thinks every build package is noncompliant, but if I click into one of the packages which takes me to the feed, the package is correctly reporting as compliant.

          Project Build:
          3ad7f279-a301-49f4-8742-3121d0b66bfa-image.png

          Example Package Feed:
          63a7df21-839b-4e16-85b3-d4bf6fab444f-image.png

          If I analyze my Build again, this is part of the log output (too long to post the entire thing):

          Using recently cached (04/05/2026 09:06:59) metadata.
          Analyzing compliance for Azure.Core 1.47.1...
          Beginning license rule analysis...
          Default rules: undectableLicense=Warn, unspecifiedLicense=Compliant
          Checking MIT against rules...
          No matching license rules; applying unspecifiedLicense rule (Compliant)
          License rule analysis complete.
          Policy "Global" considers aged packages (3 years) Warn
          The package is not cached or local to any feed; cannot determine Publish Date.
          Policy "Global" considers recently published (7 days) Noncompliant
          The package is not cached or local to any feed; cannot determine Publish Date.
          No policies define a latest patch, so latest patch will not be checked.
          Analysis resulted in a Noncompliant result.
          Azure.Core 1.47.1 is Noncompliant Package is Recently Published
          Using recently cached (04/05/2026 08:35:56) metadata.
          Analyzing compliance for Azure.Identity 1.14.2...
          Beginning license rule analysis...
          Default rules: undectableLicense=Warn, unspecifiedLicense=Compliant
          Checking MIT against rules...
          No matching license rules; applying unspecifiedLicense rule (Compliant)
          License rule analysis complete.
          Package is deprecated.
          Policy "Global" considers deprecation Warn
          Policy "Global" considers aged packages (3 years) Warn
          The package is not cached or local to any feed; cannot determine Publish Date.
          Policy "Global" considers recently published (7 days) Noncompliant
          The package is not cached or local to any feed; cannot determine Publish Date.
          No policies define a latest patch, so latest patch will not be checked.
          Analysis resulted in a Noncompliant result.
          Azure.Identity 1.14.2 is Noncompliant Package Status is Deprecated; Package is Recently Published
          Using recently cached (04/05/2026 08:35:56) metadata.
          Analyzing compliance for Microsoft.Bcl.AsyncInterfaces 8.0.0...
          Beginning license rule analysis...
          Default rules: undectableLicense=Warn, unspecifiedLicense=Compliant
          Checking MIT against rules...
          No matching license rules; applying unspecifiedLicense rule (Compliant)
          License rule analysis complete.
          Policy "Global" considers aged packages (3 years) Warn
          The package is not cached or local to any feed; cannot determine Publish Date.
          Policy "Global" considers recently published (7 days) Noncompliant
          The package is not cached or local to any feed; cannot determine Publish Date.
          No policies define a latest patch, so latest patch will not be checked.
          Analysis resulted in a Noncompliant result.
          Microsoft.Bcl.AsyncInterfaces 8.0.0 is Noncompliant Package is Recently Published
          Using recently cached (04/05/2026 08:35:56) metadata.
          Analyzing compliance for Microsoft.Bcl.Cryptography 9.0.4...
          Beginning license rule analysis...
          Default rules: undectableLicense=Warn, unspecifiedLicense=Compliant
          Checking MIT against rules...
          No matching license rules; applying unspecifiedLicense rule (Compliant)
          License rule analysis complete.
          Policy "Global" considers aged packages (3 years) Warn
          The package is not cached or local to any feed; cannot determine Publish Date.
          Policy "Global" considers recently published (7 days) Noncompliant
          The package is not cached or local to any feed; cannot determine Publish Date.
          No policies define a latest patch, so latest patch will not be checked.
          Analysis resulted in a Noncompliant result.
          Microsoft.Bcl.Cryptography 9.0.4 is Noncompliant Package is Recently Published
          Using recently cached (04/05/2026 08:37:50) metadata.
          Analyzing compliance for Microsoft.Data.SqlClient 6.1.1...
          Beginning license rule analysis...
          Default rules: undectableLicense=Warn, unspecifiedLicense=Compliant
          Checking MIT against rules...
          No matching license rules; applying unspecifiedLicense rule (Compliant)
          License rule analysis complete.
          Policy "Global" considers aged packages (3 years) Warn
          The package is not cached or local to any feed; cannot determine Publish Date.
          Policy "Global" considers recently published (7 days) Noncompliant
          The package is not cached or local to any feed; cannot determine Publish Date.
          No policies define a latest patch, so latest patch will not be checked.
          Analysis resulted in a Noncompliant result.
          Microsoft.Data.SqlClient 6.1.1 is Noncompliant Package is Recently Published
          Using recently cached (04/05/2026 08:35:57) metadata.
          Analyzing compliance for microsoft.data.sqlclient.sni.runtime 6.0.2...
          Beginning license rule analysis...
          Default rules: undectableLicense=Warn, unspecifiedLicense=Compliant
          The package is not cached or local to any feed; without package metadata, license detection is limited.
          No licenses detected on package; applying undectableLicense rule (Warn)
          License rule analysis complete.
          Policy "Global" considers aged packages (3 years) Warn
          The package is not cached or local to any feed; cannot determine Publish Date.
          Policy "Global" considers recently published (7 days) Noncompliant
          The package is not cached or local to any feed; cannot determine Publish Date.
          No policies define a latest patch, so latest patch will not be checked.
          Analysis resulted in a Noncompliant result.
          microsoft.data.sqlclient.sni.runtime 6.0.2 is Noncompliant Package is Recently Published; No license detected
          

          From a brief look at the logs, i'm guessing this is to do with out recently published rule not being calculated for packages that are yet to be cached locally. We are trialling this prior the the build step, so we can't make the assumption that a particular package version will be cached locally in ProGet when running pgutil scan.

          Any help is much appreciated.

          Thanks,
          Ashley

          1 Reply Last reply Reply Quote 0
          • Dan_WoolfD Offline
            Dan_Woolf inedo-engineer
            last edited by

            Hi @Ashley,

            Glad to hear that fixed the issue with the Project Name!

            You are partially right on the noncompliance. The publish date is definitely causing most of the packages to be noncompliant. Based on your logs, I'm also seeing at least one deprecated package as well.

            I see you already have another forums post about the recently published issue. I believe we can continue that issue there and close this one out.

            Thanks,
            Dan

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation