- 
                Notifications
    
You must be signed in to change notification settings  - Fork 246
 
RFC: SBOM generation #714
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
          
     Open
      
      
            bdehamer
  wants to merge
  22
  commits into
  npm:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
bdehamer:bdehamer/sbom
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
  
     Open
                    RFC: SBOM generation #714
Changes from 1 commit
      Commits
    
    
            Show all changes
          
          
            22 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      fac44c2
              
                rfc for npm cli sbom generation
              
              
                bdehamer 0b6acf7
              
                sbom rfc refinement
              
              
                bdehamer be514e6
              
                spdx example clean-up
              
              
                bdehamer 649fde5
              
                spdx example clean-up
              
              
                bdehamer 677ca7c
              
                cyclonedx example clean-up
              
              
                bdehamer b354cce
              
                spdx example clean-up
              
              
                bdehamer b550c58
              
                clarify cyclonedx npm properties
              
              
                bdehamer ab2cea9
              
                clarify cyclonedx sbom output
              
              
                bdehamer 23170c0
              
                clarify use of workspace flags
              
              
                bdehamer 0912839
              
                mention @cyclonedx/cyclonedx-library package
              
              
                bdehamer 52bb0e4
              
                mention @cyclonedx/cyclonedx-npm in prior art
              
              
                bdehamer f9738a1
              
                drop section on linked packages
              
              
                bdehamer 070d29f
              
                update recommendation about format neutrality
              
              
                bdehamer 9db5619
              
                add --sbom-type flag
              
              
                bdehamer 617337e
              
                add info about cdx lifecycle phase
              
              
                bdehamer fd7783d
              
                add info about negated --workspaces command
              
              
                bdehamer 7da3739
              
                switch recommended cdx format to 1.5
              
              
                bdehamer 777f3dc
              
                update impl description
              
              
                bdehamer 1ff7335
              
                remove bikeshedding about re-using npm-ls
              
              
                bdehamer d20e4c5
              
                formatting fixup
              
              
                bdehamer 4f140b9
              
                update spdx exmample
              
              
                bdehamer 8370368
              
                update cdx example
              
              
                bdehamer File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -23,7 +23,7 @@ A new `sbom` command will be added to the npm CLI which will generate an SBOM fo | |
| 
     | 
||
| Supported command options: | ||
| 
     | 
||
| `--sbom-format` - SBOM format to use for output. Valid values are “spdx” or “cyclonedx”. In the future, the set of valid values can be expanded to select differents versions of the supported output formats (e.g. "cyclonedx1.4" vs "cyclonedx1.5") | ||
| `--sbom-format` - SBOM format to use for output. Valid values are “spdx” or “cyclonedx”. In the future, the set of valid values can be expanded to select differents versions of the supported output formats (e.g. "cyclonedx1.4" vs "cyclonedx1.5"). | ||
| 
     | 
||
| `--omit` - Dependency types to omit from generated SBOM. Valid values are “dev”, “optional”, and “peer” (can be set multiple times). By default, all development, optional, and peer dependencies will be included in the generated SBOM unless explicitly excluded. | ||
| 
     | 
||
| 
          
            
          
           | 
    @@ -162,7 +162,7 @@ _Recommendation: Add a distinct command for generating an SBOM._ | |
| 
     | 
||
| * Does `npm-sbom` command have a notion of a “default” SBOM format? Do we give preference to one of CycloneDX/SPDX or do we remain totally neutral (possibly at the expense of DX)? \ | ||
| \ | ||
| _Recommendation: Default to SPDX if no format is specified._ | ||
| _Recommendation: Remain neutral with regard to SPDX vs CycloneDX. Make the `--sbom-format` flag mandatory. | ||
                
       | 
||
| 
     | 
||
| * Both CycloneDX and SPDX support multiple document formats (JSON, XML, Protocol Buffers, etc). Should we support output of multiple formats, or do we stick w/ JSON? \ | ||
| \ | ||
| 
          
            
          
           | 
    ||
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.