Skip to content

Commit

Permalink
nit: improve logging for the custom annotation enricher and adjust th…
Browse files Browse the repository at this point in the history
…e name of its parameter in the example
  • Loading branch information
northdpole committed Oct 18, 2024
1 parent a4afa5a commit f590ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/enrichers/custom-annotation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func enrichIssue(i *apiv1.Issue, annotations string) (*apiv1.EnrichedIssue, erro
enrichedIssue := apiv1.EnrichedIssue{}
annotationMap := map[string]string{}
if err := json.Unmarshal([]byte(annotations), &annotationMap); err != nil {
return nil, errors.Errorf("could not unmarshall annotation object %s to map[string]string, err: %w", annotations, err)
return nil, errors.Errorf("could not unmarshall annotation object '%s' to map[string]string, err: %w", annotations, err)
}
enrichedIssue = apiv1.EnrichedIssue{
RawIssue: i,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
params:
- name: git-clone-url
value: https://github.com/sqreen/go-dvwa.git
- name: enricher-custom-annotation-annotations
- name: enricher-custom-annotation-base-annotation
value: |
{"foo":"bar",
"a":"b",
Expand Down

0 comments on commit f590ced

Please sign in to comment.