Skip to content
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

syft attest cmd is not exporting output to file #1061

Closed
developer-guy opened this issue Jun 24, 2022 · 3 comments · Fixed by #1087
Closed

syft attest cmd is not exporting output to file #1061

developer-guy opened this issue Jun 24, 2022 · 3 comments · Fixed by #1087
Assignees
Labels
bug Something isn't working

Comments

@developer-guy
Copy link
Contributor

What happened:

What you expected to happen:

We (w/@Dentrax) noticed that Syft attest command has a --file option to redirect the output o a file but this feature is not working.

To reproduce an issue run the following commands:

$ syft atttest --key <key> <img>  -o json --file att.json
$ cat att.json
'att.json': No such file or directory (os error 2)

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Output of syft version: 0.48.1
  • OS (e.g: cat /etc/os-release or similar):
@developer-guy developer-guy added the bug Something isn't working label Jun 24, 2022
@spiffcs
Copy link
Contributor

spiffcs commented Jun 24, 2022

👋 Hi Developer guy:

When you run something lime syft attest --key cosign.key -o json alpine:latest > attest.json and redirect the output you can write to a file.

I know for the SBOM we have the --file option. Would you like to see this flag added on attestation as well?

@developer-guy
Copy link
Contributor Author

Yep, I know this is my workaround too I redirected to a file through the > operator. But yeah, it'd be better to support the --file option for attestation as well, would you mind assigning it to me?

@spiffcs
Copy link
Contributor

spiffcs commented Jun 24, 2022

Sure - stabilizing the surfaces would be awesome to get some consistency between the commands:
cc @anchore/ci-tools-project if anyone has a different opinion on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants