We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
command: compare
sbom://
I'd like to be able to use the new sbom:// syntax, but it seems it's not (yet) supported with the command: compare mode.
Steps to reproduce:
- name: Generate SBOM for image id: sbom uses: anchore/sbom-action@719133684c7d294116626d1344fe64f0d2ff3e9e # v0.15.2 with: image: ${{ env.IMAGE }}:${{ github.sha }} output-file: sbom.spdx.json - name: Docker Scout if: ${{ github.event_name == 'pull_request' && !cancelled() }} uses: docker/scout-action@c01629436921e4c567967cbfa14764f4b6113237 # v1.6.4 with: command: compare image: sbom://sbom.spdx.json to: ${{ env.IMAGE }}:latest ignore-unchanged: true only-fixed: true write-comment: true
Expected results:
Actual results:
Error: missing or wrong "image" input
non-SBOM example (for comparison):
- name: Docker Scout if: ${{ github.event_name == 'pull_request' && !cancelled() }} uses: docker/scout-action@c01629436921e4c567967cbfa14764f4b6113237 # v1.6.4 with: command: compare image: ${{ env.IMAGE }}:${{ github.sha }} to: ${{ env.IMAGE }}:latest ignore-unchanged: true only-fixed: true write-comment: true
For reference, this should be supported upstream nowadays, as per:
And here's using it without the action:
$ syft alpine:latest -o syft-json > sbom.spdx.json $ docker scout compare --to alpine:latest sbom://sbom.spdx.json [...]
The text was updated successfully, but these errors were encountered:
Thanks @MPV to have raised the issue. I'll see to have it in a following release.
Sorry, something went wrong.
@MPV The fix has been integrated in the new v1.10.0 release.
v1.10.0
Thanks for your efforts. But to be honest I was looking for comparing an image with an SBOM (as you see in my example).
Doing this (now with v1.10.0) instead gives: Error: missing or wrong "image" input
But I am able to do the equivalent using the Docker Scout CLI. I assume your intent is that they should be doing the same thing.
No branches or pull requests
I'd like to be able to use the new
sbom://
syntax, but it seems it's not (yet) supported with thecommand: compare
mode.Steps to reproduce:
Expected results:
Actual results:
Error: missing or wrong "image" input
non-SBOM example (for comparison):
For reference, this should be supported upstream nowadays, as per:
And here's using it without the action:
$ syft alpine:latest -o syft-json > sbom.spdx.json $ docker scout compare --to alpine:latest sbom://sbom.spdx.json [...]
The text was updated successfully, but these errors were encountered: