This action uses the REST API call to generate the SBOM for the repo (on the default branch). You can then use the fileName
output to upload the file as an artifact.
You can use the workflow as follows:
gen-sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: advanced-security/generate-sbom-action@v1
id: gensbom
- uses: actions/upload-artifact@v4
with:
name: sbom
path: ${{ steps.gensbom.outputs.fileName }}