-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update SBOM file and add test confirming we do not accidentally upgra…
…de libmongocrypt without updating deps
- Loading branch information
1 parent
ac86fcf
commit fdb06d6
Showing
2 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"bom-ref": "pkg:github/mongodb/libmongocrypt", | ||
"bom-ref": "pkg:github/mongodb/libmongocrypt@1.10.0", | ||
"externalReferences": [ | ||
{ | ||
"type": "distribution", | ||
"url": "https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.10.0.tar.gz" | ||
}, | ||
{ | ||
"type": "website", | ||
"url": "https://github.com/mongodb/libmongocrypt" | ||
"url": "https://github.com/mongodb/libmongocrypt/tree/1.10.0" | ||
} | ||
], | ||
"group": "mongodb", | ||
"name": "libmongocrypt", | ||
"purl": "pkg:github/mongodb/libmongocrypt", | ||
"type": "library" | ||
"purl": "pkg:github/mongodb/[email protected]", | ||
"type": "library", | ||
"version": "1.10.0" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "pkg:github/mongodb/libmongocrypt" | ||
"ref": "pkg:github/mongodb/libmongocrypt@1.10.0" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2024-05-01T20:55:10.513782+00:00", | ||
"timestamp": "2024-06-13T19:31:46.989110+00:00", | ||
"tools": [ | ||
{ | ||
"externalReferences": [ | ||
|
@@ -63,7 +68,7 @@ | |
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:d39c0f4e-9f42-4f2b-8102-01c5da520fe7", | ||
"serialNumber": "urn:uuid:ecd6916a-5c14-448c-a399-161adf46a609", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", | ||
"bomFormat": "CycloneDX", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { expect } from 'chai'; | ||
import { join } from 'path'; | ||
|
||
describe('libmongocrypt version', function () { | ||
it('the version in the package.json matches the version declared in the sbom file', function () { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const packageVersion = require(join(__dirname, '../package.json'))['mongodb:libmongocrypt']; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const sbom = require(join(__dirname, '../sbom.json')).dependencies[0].ref; | ||
|
||
expect(sbom).to.include(packageVersion); | ||
}); | ||
}); |