Skip to content

Commit

Permalink
Merge pull request #51 from jedevc/golang-check-for-evidence-relation…
Browse files Browse the repository at this point in the history
…ship
  • Loading branch information
cdupuis authored Apr 18, 2023
2 parents cad666e + 177d04d commit 108aa14
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/golang/checks/sbom-base.spdx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
{
"name": "github.com/spf13/cobra"
}
],
"files": [
{
"fileName": "/app/app"
}
]
}
}
15 changes: 15 additions & 0 deletions examples/golang/checks/sbom.spdx.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@
"SPDXID": "SPDXRef-DOCUMENT",
"packages": [
{
"SPDXID": "=package",
"name": "github.com/spf13/cobra"
}
],
"files": [
{
"SPDXID": "=filename",
"fileName": "/bin/app"
}
],
"relationships": [
{
"spdxElementId": "==package",
"relationshipType": "OTHER",
"comment": "evident-by: indicates the package's existence is evident by the given file",
"relatedSpdxElement": "==filename"
}
]
}
}

0 comments on commit 108aa14

Please sign in to comment.