Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@StevenMaude
Copy link
Contributor

This PR fixes the following problem in Syft 0.44.1:

$ syft packages . -o github-json
1 error occurred:
	* bad output format: 'github-json'

@StevenMaude
Copy link
Contributor Author

Two things:

  1. I'm testing Syft out and noticed this issue while trying out all the output options. I've not looked closely at the codebase at all. Feel free to tell me this is entirely the wrong approach 😃
  2. I added a note to the docs, but couldn't find a suitable link/reference for the github format in Export GitHub format #836 (nor from a quick search around). If there is a suitable link, I'm happy to add it to f82bcde.

@kzantow
Copy link
Contributor

kzantow commented Apr 21, 2022

@StevenMaude this format isn't completely finalized. I'm not sure we should treat it as such until it is finalized, but at such time github-json sounds like an appropriate option 👍

@spiffcs spiffcs added the bug Something isn't working label Apr 27, 2022
@jonasagx jonasagx self-assigned this May 4, 2022
@jonasagx
Copy link
Contributor

jonasagx commented May 4, 2022

@StevenMaude thanks for fixing this. Your PR has one last thing to pass our tests, there is a code formatting issue, to fix it just run the following command from the project directory in your local machine:

make lint-fix

Then commit the changes and it should be good. I will be here if you need help.

Signed-off-by: Steven Maude <[email protected]>
@StevenMaude
Copy link
Contributor Author

@jonasagx: thanks for your patience! Hopefully I've wrangled it, I think it was just a gofmt issue in the end.

@jonasagx jonasagx merged commit 8b6c576 into anchore:main May 5, 2022
spiffcs added a commit that referenced this pull request May 6, 2022
* main:
  feat: add initial dotnet-support (#951)
  unblock timeout for power-user select CLI tests (#985)
  golang cataloger - main module version as is (#986)
  Fix `github-json` output option (#967)
  read Go main module version as is - (devel) (#981)
  reduce logging severity for non-Go binaries (#983)
  golang.org/x/crypto upgrade (#979)
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
* Fix "bad output format" for `github-json` output

Signed-off-by: Steven Maude <[email protected]>

* Update formats in README

Signed-off-by: Steven Maude <[email protected]>

* Run `make lint-fix`

Signed-off-by: Steven Maude <[email protected]>
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 this pull request may close these issues.

4 participants