File tree Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Expand file tree Collapse file tree 2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"components" : [
3
3
{
4
- "bom-ref" : " pkg:github/mongodb/libmongocrypt" ,
4
+ "bom-ref" : " pkg:github/mongodb/libmongocrypt@1.10.0 " ,
5
5
"externalReferences" : [
6
+ {
7
+ "type" : " distribution" ,
8
+ "url" : " https://github.com/mongodb/libmongocrypt/archive/refs/tags/1.10.0.tar.gz"
9
+ },
6
10
{
7
11
"type" : " website" ,
8
- "url" : " https://github.com/mongodb/libmongocrypt"
12
+ "url" : " https://github.com/mongodb/libmongocrypt/tree/1.10.0 "
9
13
}
10
14
],
11
15
"group" : " mongodb" ,
12
16
"name" : " libmongocrypt" ,
13
- "purl" : " pkg:github/mongodb/libmongocrypt" ,
14
- "type" : " library"
17
+ "purl" : " pkg:github/mongodb/libmongocrypt@1.10.0" ,
18
+ "type" : " library" ,
19
+ "version" : " 1.10.0"
15
20
}
16
21
],
17
22
"dependencies" : [
18
23
{
19
- "ref" : " pkg:github/mongodb/libmongocrypt"
24
+ "ref" : " pkg:github/mongodb/libmongocrypt@1.10.0 "
20
25
}
21
26
],
22
27
"metadata" : {
23
- "timestamp" : " 2024-05-01T20:55:10.513782 +00:00" ,
28
+ "timestamp" : " 2024-06-13T19:31:46.989110 +00:00" ,
24
29
"tools" : [
25
30
{
26
31
"externalReferences" : [
63
68
}
64
69
]
65
70
},
66
- "serialNumber" : " urn:uuid:d39c0f4e-9f42-4f2b-8102-01c5da520fe7 " ,
71
+ "serialNumber" : " urn:uuid:ecd6916a-5c14-448c-a399-161adf46a609 " ,
67
72
"version" : 1 ,
68
73
"$schema" : " http://cyclonedx.org/schema/bom-1.5.schema.json" ,
69
74
"bomFormat" : " CycloneDX" ,
Original file line number Diff line number Diff line change
1
+ import { expect } from 'chai' ;
2
+ import { join } from 'path' ;
3
+
4
+ describe ( 'libmongocrypt version' , function ( ) {
5
+ it ( 'the version in the package.json matches the version declared in the sbom file' , function ( ) {
6
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
7
+ const packageVersion = require ( join ( __dirname , '../package.json' ) ) [ 'mongodb:libmongocrypt' ] ;
8
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
9
+ const sbom = require ( join ( __dirname , '../sbom.json' ) ) . dependencies [ 0 ] . ref ;
10
+
11
+ expect ( sbom ) . to . include ( packageVersion ) ;
12
+ } ) ;
13
+ } ) ;
You can’t perform that action at this time.
0 commit comments