Skip to content

Commit 8f7b163

Browse files
committed
chore:SP-1861 Adds component field in CycloneDX output
1 parent e96142f commit 8f7b163

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Upcoming changes...
1111

12+
## [1.18.1] - 2024-11-19
13+
### Added
14+
- Added 'component' field in CycloneDX output
15+
1216
## [1.18.0] - 2024-11-11
1317
### Fixed
1418
- Fixed post processor being accesed if not set
@@ -403,4 +407,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
403407
[1.17.3]: https://github.com/scanoss/scanoss.py/compare/v1.17.2...v1.17.3
404408
[1.17.4]: https://github.com/scanoss/scanoss.py/compare/v1.17.3...v1.17.4
405409
[1.17.5]: https://github.com/scanoss/scanoss.py/compare/v1.17.4...v1.17.5
406-
[1.18.0]: https://github.com/scanoss/scanoss.py/compare/v1.17.5...v1.18.0
410+
[1.18.0]: https://github.com/scanoss/scanoss.py/compare/v1.17.5...v1.18.0
411+
[1.18.1]: https://github.com/scanoss/scanoss.py/compare/v1.17.5...v1.18.1

src/scanoss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
THE SOFTWARE.
2323
"""
2424

25-
__version__ = "1.18.0"
25+
__version__ = "1.18.1"

src/scanoss/cyclonedx.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ def produce_from_json(self, data: json, output_file: str = None) -> bool:
199199
}
200200
]
201201
},
202+
'component': {
203+
'type': 'application',
204+
'name': 'NOASSERTION',
205+
'version': 'NOASSERTION'
206+
},
202207
'components': [],
203208
'vulnerabilities': []
204209
}

0 commit comments

Comments
 (0)