blint 2.0.7__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blint-2.0.7 → blint-2.1.0}/PKG-INFO +1 -1
- {blint-2.0.7 → blint-2.1.0}/blint/sbom.py +5 -4
- {blint-2.0.7 → blint-2.1.0}/pyproject.toml +1 -1
- {blint-2.0.7 → blint-2.1.0}/LICENSE +0 -0
- {blint-2.0.7 → blint-2.1.0}/README.md +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/__init__.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/analysis.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/android.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/binary.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/checks.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/cli.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/config.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/README.md +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/__init__.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/spdx.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/cyclonedx/spec.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/__init__.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/__init__.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_entries_generic.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_entries_pe.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_exe_go.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_imports_pe.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_methods_generic.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_methods_mips.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_generic.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_go.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_rust +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_monero_rust.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_rootkits_win.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_antiforensic.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_generic.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_hooka.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_macho.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/annotations/review_symbols_rust.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/data/rules.yml +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/logger.py +0 -0
- {blint-2.0.7 → blint-2.1.0}/blint/utils.py +0 -0
|
@@ -2,7 +2,6 @@ import base64
|
|
|
2
2
|
import binascii
|
|
3
3
|
import codecs
|
|
4
4
|
import os
|
|
5
|
-
import urllib.parse
|
|
6
5
|
import uuid
|
|
7
6
|
from datetime import datetime
|
|
8
7
|
from typing import Any, Dict
|
|
@@ -526,7 +525,7 @@ def process_dotnet_dependencies(dotnet_deps: dict[str, dict], dependencies_dict:
|
|
|
526
525
|
],
|
|
527
526
|
)
|
|
528
527
|
if hash_content:
|
|
529
|
-
comp.hashes = Hash(alg=HashAlg.SHA_512, content=hash_content),
|
|
528
|
+
comp.hashes = [Hash(alg=HashAlg.SHA_512, content=hash_content)],
|
|
530
529
|
comp.bom_ref = RefType(purl)
|
|
531
530
|
components.append(comp)
|
|
532
531
|
targets: dict[str, dict[str, dict]] = dotnet_deps.get("targets", {})
|
|
@@ -559,7 +558,9 @@ def process_go_dependencies(go_deps: dict[str, str]) -> list[Component]:
|
|
|
559
558
|
# This would make this compatible with cdxgen and depscan
|
|
560
559
|
# See https://github.com/CycloneDX/cdxgen/issues/897
|
|
561
560
|
for k, v in go_deps.items():
|
|
562
|
-
|
|
561
|
+
# See #83
|
|
562
|
+
# purl specification uses namespace hack for go to make this identifier use slash
|
|
563
|
+
purl = f"""pkg:golang/{k.lower()}@{v.get("version")}"""
|
|
563
564
|
comp = Component(
|
|
564
565
|
type=Type.library,
|
|
565
566
|
name=k,
|
|
@@ -576,7 +577,7 @@ def process_go_dependencies(go_deps: dict[str, str]) -> list[Component]:
|
|
|
576
577
|
except binascii.Error:
|
|
577
578
|
hash_content = str(v.get("hash").removeprefix("h1:"))
|
|
578
579
|
if hash_content:
|
|
579
|
-
comp.hashes = Hash(alg=HashAlg.SHA_256, content=hash_content)
|
|
580
|
+
comp.hashes = [Hash(alg=HashAlg.SHA_256, content=hash_content)]
|
|
580
581
|
comp.bom_ref = RefType(f"""pkg:golang/{k}@{v.get("version")}""")
|
|
581
582
|
components.append(comp)
|
|
582
583
|
return components
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|