Skip to content

Commit

Permalink
fix: avoid bash expansion when generating json (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumeetpatil authored Nov 10, 2020
1 parent 0eaf44e commit b91229b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaybee/internal/tasks/data/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export:
{{ $source_path := .Metadata.LocalPath }}
[ -f {{ $source_path }}/changed-source-code.tar.gz ] && tar -xf {{ $source_path }}/changed-source-code.tar.gz -C ./{{ .VulnerabilityID }}
cat << EOM > ./{{ .VulnerabilityID }}/metadata.json
cat << 'EOM' > ./{{ .VulnerabilityID }}/metadata.json
{{ .ToJSON }}
EOM
{{ if .Fixes}}{{ $description := or ((index .Notes 0).Text) "" }}
Expand Down

0 comments on commit b91229b

Please sign in to comment.