fsfe / reuse-action

A GitHub action to check repositories for REUSE compliance
https://reuse.software
55 stars 8 forks source link

How to store the result of the spdx command? #20

Closed schmidtw closed 1 year ago

schmidtw commented 1 year ago

I'd like to capture the output of the spdx command. Do you have a way to either write it to a file or to an environment variable?

mxmehl commented 1 year ago

You could try passing the -o flag to the spdx subcommand which writes the output to a file:

    - uses: actions/checkout@v3
    - name: REUSE SPDX SBOM
      uses: fsfe/reuse-action@v1
      with:
        args: spdx -o sbom.spdx

The file sbom.spdx should then be available in the workspace.