# \[ANN\] PkgToSoftwareBOM.jl: Generate an SBOM of your environment

**URL:** https://discourse.julialang.org/t/ann-pkgtosoftwarebom-jl-generate-an-sbom-of-your-environment/99197
**Category:** Package Announcements
**Created:** [May 22, 2023, 5:11am UTC](https://discourse.julialang.org/t/ann-pkgtosoftwarebom-jl-generate-an-sbom-of-your-environment/99197 "2023-05-22T05:11:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SamuraiAku](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samuraiaku/32/26235_2.png) [@SamuraiAku](https://discourse.julialang.org/u/SamuraiAku)
#### Post date: [May 22, 2023, 5:11am UTC](https://discourse.julialang.org/t/ann-pkgtosoftwarebom-jl-generate-an-sbom-of-your-environment/99197/1 "2023-05-22T05:11:17Z")

</div>

# PkgToSoftwareBOM.jl

This package produces a Software Bill of Materials (SBOM) describing your Julia environment. At this time, the SBOM produced is in the ([SPDX](https://github.com/SamuraiAku/SPDX.jl)) format. Contributions to support other SBOM formats are welcome.

I created PkgToSoftwareBOM.jl to help the Julia ecosystem get prepared for the emerging future of software supply chain security. If we want to see Julia adoption to continue to grow, then we need to be able to easily create SBOMs to supply to the organizations using Julia packages.

PkgToSoftwareBOM interfaces with the standard library Pkg to fill in the SBOM data fields. Information filled out today includes a complete dependency list, versions in use, where the package can be downloaded from, and a checksum. Future versions may be able to fill in additional fields including copyright text and software license.

PkgToSoftwareBOM defaults to using the General registry but can use other registries and even mutiple registries as the source(s) of package information.

Link to [repository](https://github.com/SamuraiAku/PkgToSoftwareBOM.jl)

## What is an SBOM?

An SBOM is a formal, machine-readable inventory of software components and dependencies, information about those components, and their hierarchical relationships. These inventories should be comprehensive – or should explicitly state where they could not be. SBOMs may include open source or proprietary software and can be widely available or access-restricted.

For a further information about SBOMs, their importance and how they can be used please see the Software Bill of Materials website maintained by the [National Telecommuications and Information Administration](https://ntia.gov/page/software-bill-materials)

## Why do you care about SBOMs?

SBOMs are an important component of developing software security practices. US Presidential Executive Order [EO 14028](https://www.whitehouse.gov/briefing-room/presidential-actions/2021/05/12/executive-order-on-improving-the-nations-cybersecurity/) established SBOMs as one method by which the federal government will establish the provenence of software in use. Commercial organizations are also using SBOMs for the same reason.

## What does an SBOM look like?

The file `PkgToSoftwareBOM.spdx.json` at the root of this package is a Developer SBOM of this package.

See examples of User Environment SBOMs in the folder `examples`

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [May 22, 2023, 10:16am UTC](https://discourse.julialang.org/t/ann-pkgtosoftwarebom-jl-generate-an-sbom-of-your-environment/99197/2 "2023-05-22T10:16:26Z")

</div>

Shouldn’t the package try to provide the licence of the dependent files from the LICENCE file in the repository instead of generating “NOASSERTION” ?

---

<div class="post-metadata">

### Author: ![SamuraiAku](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samuraiaku/32/26235_2.png) [@SamuraiAku](https://discourse.julialang.org/u/SamuraiAku)
#### Post date: [May 22, 2023, 10:13pm UTC](https://discourse.julialang.org/t/ann-pkgtosoftwarebom-jl-generate-an-sbom-of-your-environment/99197/3 "2023-05-22T22:13:45Z")

</div>

Identifying the license is on my TODO list. Either queries to GitHub API or using licensecheck.jl most likely.
