Skip to content

Commit

Permalink
need to pass in skill execution context
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispatrick committed Mar 7, 2024
1 parent b014ca3 commit 02e66db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion policy/policy_handler/mocks/base_image_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ func mockBaseImageDetails(ctx context.Context, req skill.RequestContext, sb *typ

var queryResponse BaseImagesByDigestResponse

queryVariables := map[string]interface{}{"digest": baseImageDigest}
queryVariables := map[string]interface{}{
"digest": baseImageDigest,
"context": data.GqlContext(req)}
_, err = ds.Query(ctx, baseImagesByDigestQueryName, baseImagesByDigestQuery, queryVariables, &queryResponse)
if err != nil {
return ImageDetailsByDigestResponse{}, err
Expand Down

0 comments on commit 02e66db

Please sign in to comment.