Skip to content

fix: decoding null apk metadata pullDependencies#1614

Merged
kzantow merged 1 commit intoanchore:mainfrom
kzantow-anchore:fix/apk-metadata-dependency-decoding
Feb 23, 2023
Merged

fix: decoding null apk metadata pullDependencies#1614
kzantow merged 1 commit intoanchore:mainfrom
kzantow-anchore:fix/apk-metadata-dependency-decoding

Conversation

@kzantow
Copy link
Copy Markdown
Contributor

@kzantow kzantow commented Feb 23, 2023

If APK Metadata JSON contains a "pullDependencies": null, this will cause Syft to fail to parse the entire SBOM with an error invalid type for string array: <nil>. This PR corrects the issue.

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow added the bug Something isn't working label Feb 23, 2023
@kzantow kzantow enabled auto-merge (squash) February 23, 2023 19:51
@kzantow kzantow merged commit 5e8aa4d into anchore:main Feb 23, 2023
@kzantow kzantow deleted the fix/apk-metadata-dependency-decoding branch February 23, 2023 20:01
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
Signed-off-by: Keith Zantow <kzantow@gmail.com>
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants