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

invalid verification_code #75

Closed
vargenau opened this issue Jul 10, 2024 · 1 comment · Fixed by #82
Closed

invalid verification_code #75

vargenau opened this issue Jul 10, 2024 · 1 comment · Fixed by #82

Comments

@vargenau
Copy link
Contributor

test.spdx.txt

sbomasm assemble -n merge -v 1 -t application -o merge.spdx.json test.spdx

merge.spdx.json

pyspdxtools -i merge.spdx.json 
ERROR:root:The document is invalid. The following issues have been found:
value of verification_code must consist of 40 lowercase hexadecimal digits, but is:  (length: 0 digits)
value of verification_code must consist of 40 lowercase hexadecimal digits, but is:  (length: 0 digits)
  {
   "name": "464xlat",
   "SPDXID": "SPDXRef-Package-464xlat",
   "versionInfo": "12",
   "supplier": "Organization: ACME",
   "downloadLocation": "https://github.com/openwrt/openwrt/tree/openwrt-21.02/package/network/ipv6/464xlat",
   "filesAnalyzed": true,
   "packageVerificationCode": {
    "packageVerificationCodeValue": ""
   },
   "licenseConcluded": "GPL-2.0-only",
   "licenseDeclared": "GPL-2.0-only",
   "copyrightText": "NOASSERTION"
  }

Why creating a verification code as it does not exist in the original file?

@riteshnoronha
Copy link
Contributor

Fixed with #82

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants