Skip to content

Latest commit

 

History

History
105 lines (81 loc) · 3.07 KB

creating-erlang-sbom.md

File metadata and controls

105 lines (81 loc) · 3.07 KB

Creating SBOMs from Erlang Projects

Introduction

This tutorial illustrates how to produce an SBOM from Erlang projects using the Rebar3_Sbom plugin.

Requirements

  • Erlang 25

  • Rebar3

Installation and Usage

Navigate to your Erlang project.

Copy and paste:

{plugins, [rebar3_sbom]}.

into your rebar.config file.

Then run:

rebar3 sbom

A bom.xml should appear in your directory.

Notes

  • Ensure that you have at least Erlang version 25, lower versions do not work, and result in crashes.

  • The only output format available appears to be xml. However, this output can be converted to JSON.

  • This generator may create SBOMs with flawed serial numbers, rendering the SBOM invalid.

SBOM

<title>Pretty JSON Display</title> <style> #json-container { height: 400px; /* Set a fixed height */ overflow-y: auto; /* Enable vertical scrolling */ border: 2px solid #ccc; /* Optional: add a border for visibility */ padding: 10px; } #xml-container { height: 400px; /* Set a fixed height */ overflow-y: auto; /* Enable vertical scrolling */ border: 2px solid #ccc; /* Optional: add a border for visibility */ padding: 10px; } pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; } </style>

    
<script> function display_json(url, elementid){ fetch(url) .then(response => response.json()) .then(data => { document.getElementById(elementid).textContent = JSON.stringify(data, null, 2); }) .catch(error => console.error('Error fetching JSON:', error)); } function display_xml(url, elementid){ fetch(url) .then(response => response.text()) .then(data => { document.getElementById(elementid).textContent = data; }) .catch(error => console.error('Error fetching XML:', error)); } display_xml('./bom.xml', 'xml-display'); </script>

References