-
Notifications
You must be signed in to change notification settings - Fork 571
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
Add support for java "nar" files #1701
Comments
curious! is a |
A nar is basically a shaded jar. It's very similar to a WAR but instead of a WEB-INF the root is META-INF (like in a JAR). Under the META-INF there are other text files that essentially have to do with licensing. A short and sweet overview can be found here: https://medium.com/hashmapinc/nifi-nar-files-explained-14113f7796fd |
Thanks for the details! I think this would be a reasonable addition to the list of archive filenames. We will add this to our backlog but please let us know if you want to submit a pull request yourself--we can help you through the process if you need. We think the only things that need to change are a new glob for .nar files here:
And in the list here:
|
@tgerla Could I tackle this? If @ZENinjaneer doesn't plan to of course |
@shanedell have at it! |
- Update README.md to show that nar is now supported. - Created a java-archives/example.nar so that the tests wouldn't break. - Add nar glob and as an option for pkgType. Closes anchore#1701
- Update README.md to show that nar is now supported. - Created a java-archives/example.nar so that the tests wouldn't break. - Add nar glob and as an option for pkgType. Closes anchore#1701 Signed-off-by: Shane Dell <shanedell100@gmail.com>
- Update README.md to show that nar is now supported. - Created a java-archives/example.nar so that the tests wouldn't break. - Add nar glob and as an option for pkgType. Closes #1701 Signed-off-by: Shane Dell <shanedell100@gmail.com>
- Update README.md to show that nar is now supported. - Created a java-archives/example.nar so that the tests wouldn't break. - Add nar glob and as an option for pkgType. Closes anchore#1701 Signed-off-by: Shane Dell <shanedell100@gmail.com>
syft/syft/pkg/cataloger/java/archive_filename.go
Line 111 in b20310e
could you please add "nar" to this case statement so it can support grype scanning NiFi nars?
The text was updated successfully, but these errors were encountered: