Skip to content

Commit

Permalink
Merge branch 'guacsec:main' into guacdiff
Browse files Browse the repository at this point in the history
  • Loading branch information
arorasoham9 authored Apr 4, 2024
2 parents 9970e7b + 3d6f3c0 commit 383ff7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion internal/testing/testdata/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,12 @@ var (
"scanner": {
"uri": "osv.dev",
"version": "0.0.14",
"db": {}
"db": {},
"result": [
{
"vulnerability_id": "GHSA-9ph3-v2vh-3qx7"
}
]
},
"metadata": {
"scannedOn": "2023-02-15T11:10:08.986506-08:00"
Expand Down
4 changes: 2 additions & 2 deletions pkg/handler/collector/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/guacsec/guac/pkg/version"
"github.com/pkg/errors"
"github.com/regclient/regclient"
"github.com/regclient/regclient/types"
"github.com/regclient/regclient/types/descriptor"
"github.com/regclient/regclient/types/manifest"
"github.com/regclient/regclient/types/platform"
"github.com/regclient/regclient/types/ref"
Expand Down Expand Up @@ -355,7 +355,7 @@ func (o *ociCollector) fetchReferrerArtifacts(ctx context.Context, repo string,
for _, referrerDesc := range referrerList.Descriptors {
// Increment the WaitGroup counter
wg.Add(1)
go func(referrerDesc types.Descriptor) {
go func(referrerDesc descriptor.Descriptor) {
defer wg.Done() // Decrement the WaitGroup counter when done
if _, ok := wellKnownOCIArtifactTypes[referrerDesc.ArtifactType]; ok {
referrerDescDigest := referrerDesc.Digest.String()
Expand Down

0 comments on commit 383ff7d

Please sign in to comment.