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

Add support for creating SBOMs from binaries #21

Closed
nscuro opened this issue May 23, 2021 · 0 comments
Closed

Add support for creating SBOMs from binaries #21

nscuro opened this issue May 23, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@nscuro
Copy link
Member

nscuro commented May 23, 2021

Go embeds module version information in the binaries it builds. go version can be used to retrieve that information:

usage: go version [-m] [-v] [file ...]

[...]

The -m flag causes go version to print each executable's embedded
module version information, when available. In the output, the module
information consists of multiple lines following the version line, each
indented by a leading tab character.

[...]

See https://golang.org/cmd/go/#hdr-Print_Go_version

We can use this to build a SBOM.

@nscuro nscuro added the enhancement New feature or request label May 23, 2021
@nscuro nscuro mentioned this issue Jul 31, 2021
4 tasks
@nscuro nscuro added this to the v1.0.0 milestone Jul 31, 2021
@nscuro nscuro self-assigned this Aug 1, 2021
@nscuro nscuro added the pending-release Implementation done, waiting for release label Aug 20, 2021
@nscuro nscuro closed this as completed Sep 24, 2021
@nscuro nscuro removed the pending-release Implementation done, waiting for release label Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant