Required The path to a .sln, .csproj, .vbproj, or packages.config file or the path to a directory which will be recursively analyzed for packages.config files.
Be sure to quote paths with spaces.
Output directory, default is "./"
Be sure to quote paths with spaces.
Produce a JSON BOM instead of XML, set to any value instead of false.
Optionally provide the GitHub action bearer token for license resolution (example below).
- name: Generate XML SBOM
uses: CycloneDX/gh-dotnet-generate-sbom@v1
with:
path: ./CycloneDX.sln
github-bearer-token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate JSON SBOM
uses: CycloneDX/gh-dotnet-generate-sbom@master
with:
path: ./CycloneDX.sln
json: true
github-bearer-token: ${{ secrets.GITHUB_TOKEN }}