-
Notifications
You must be signed in to change notification settings - Fork 30
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
file option not working #389
Comments
Is there something to indicate the scan itself is using |
I'm new to the SBOM / syft scene, so maybe my expectations are wrong, but I expected the SBOM to only be related to the file I specified, somewhat analogous to if I had run
but everything in my working directory is being scanned. I can add the full action logs, or the resulting SBOM, if it would be helpful. |
|
Could you extract the tar in a prior step and then run the scan-action on the directory? |
FWIW, I'm seeing this same behavior. GitHub Actions run: Calling step: - name: Generate SBOM
uses: anchore/sbom-action@422cb34a0f8b599678c41b21163ea6088edb2624
with:
artifact-name: ${{ steps.clean.outputs.image_archive_name_stem }}-sbom.spdx.json
file: ${{ steps.clean.outputs.image_archive_name_stem }}.tar
upload-artifact-retention: ${{ inputs.artifact_retention_days }} |
It looks like If anyone on this issue has already investigated and knows the specific fix I am happy to take a look at the PR for review and help approve / work to make it into main =) |
This is seems to be a problem with the defaults and input parsing. This helps: with:
path: null
file: ... |
I've got an action defined:
Unfortunately, it looks like it's running with
path
instead offile
.Related to #385?
The text was updated successfully, but these errors were encountered: