This document is the user guide for SpdxWorkflows, a collection of standard workflow files for the SpdxTool utility.
This user guide covers:
- Overview of available workflow files
- How to reference workflows in SpdxTool configurations
- Workflow parameters and outputs
SpdxWorkflows are referenced directly by URL in SpdxTool workflow steps. No separate installation is required beyond having SpdxTool installed.
Install SpdxTool using the .NET CLI:
dotnet tool install --global DemaConsulting.SpdxToolWorkflows are referenced by URL in your SpdxTool YAML configuration files:
- command: run-workflow
inputs:
url: 'https://github.com/demaconsulting/SpdxWorkflows/blob/0.1.0/GetDotNetVersion.yaml'
integrity: d9c80d18f6ad6b3cbd5facb28d6c5712bc68c58ace11ebf890cfc92e0857628b
parameters:
<optional parameters>
outputs:
<optional outputs>Retrieves the version of the installed .NET SDK.
Outputs:
version: The .NET SDK version string
Retrieves the version of the installed GCC compiler.
Outputs:
version: The GCC version string
Retrieves the version of the installed IAR Embedded Workbench for ARM.
Outputs:
version: The IAR EW ARM version string
Retrieves the version of the installed MSBuild tool.
Outputs:
version: The MSBuild version string
Retrieves the version of the installed NuGet client.
Outputs:
version: The NuGet version string
Retrieves the version of the installed VSTest tool.
Outputs:
version: The VSTest version string
Adds a .NET package to an SPDX document.
Parameters:
spdx: Path to the SPDX documentpackage: Package name to add
Adds a GCC compiler package to an SPDX document.
Parameters:
spdx: Path to the SPDX document
Adds an IAR EW ARM package to an SPDX document.
Parameters:
spdx: Path to the SPDX document
Adds an MSBuild package to an SPDX document.
Parameters:
spdx: Path to the SPDX document
Adds a NuGet package to an SPDX document.
Parameters:
spdx: Path to the SPDX documentpackage: Package name to add
Adds a VSTest package to an SPDX document.
Parameters:
spdx: Path to the SPDX document
Enhances an SPDX document package with information from a NuGet SPDX document.
Parameters:
spdx: Path to the SPDX documentpackage: Package name to enhance
Retrieves the path of a NuGet package in the local cache.
Parameters:
package: Package nameversion: Package version
Outputs:
path: The path to the NuGet package