Commit ca740150 authored by Michał Zając's avatar Michał Zając Committed by Illya Klymov

Attach diffs to Issue created from Vulnerability

parent 97103f27
### Description: ### <%= _("Description") %>:
<%= vulnerability.description %> <%= vulnerability.description %>
<% if vulnerability.severity.present? %> <% if vulnerability.severity.present? %>
* Severity: <%= vulnerability.severity %> * <%= _("Severity") %>: <%= vulnerability.severity %>
<% end %> <% end %>
<% if vulnerability.confidence.present? %> <% if vulnerability.confidence.present? %>
* Confidence: <%= vulnerability.confidence %> * <%= _("Confidence") %>: <%= vulnerability.confidence %>
<% end %> <% end %>
<% if defined?(vulnerability.file) && vulnerability.file.present? %> <% if defined?(vulnerability.file) && vulnerability.file.present? %>
* Location: [<%= vulnerability.location_text %>](<%= vulnerability.location_link %>) * <%= _("Location") %>: [<%= vulnerability.location_text %>](<%= vulnerability.location_link %>)
<% end %> <% end %>
<% if vulnerability.solution.present? %> <% if vulnerability.solution.present? %>
### Solution: ### <%= _("Solution") %>:
<%= vulnerability.solution %> <%= vulnerability.solution %>
<% end %> <% end %>
<% if vulnerability.identifiers.present? %> <% if vulnerability.identifiers.present? %>
### Identifiers: ### <%= _("Identifiers") %>:
<% vulnerability.identifiers.each do |identifier| %> <% vulnerability.identifiers.each do |identifier| %>
<% if identifier[:url].present? %> <% if identifier[:url].present? %>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<% end %> <% end %>
<% if vulnerability.links.present? %> <% if vulnerability.links.present? %>
### Links: ### <%= _("Links") %>:
<% vulnerability.links.each do |link| %> <% vulnerability.links.each do |link| %>
<% if link[:name].present? %> <% if link[:name].present? %>
...@@ -41,3 +41,18 @@ ...@@ -41,3 +41,18 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<% if vulnerability.remediations.present? %>
### <%= _("Remediations") %>:
<% vulnerability.remediations.each do |remediation| %>
<details>
<summary><%= _("Patch to apply") %></summary>
```diff
<%= Base64.decode64(remediation[:diff]) %>
```
</details>
<% end %>
<% end %>
...@@ -5675,6 +5675,9 @@ msgstr "" ...@@ -5675,6 +5675,9 @@ msgstr ""
msgid "ComplianceFramework|This project is regulated by %{framework}." msgid "ComplianceFramework|This project is regulated by %{framework}."
msgstr "" msgstr ""
msgid "Confidence"
msgstr ""
msgid "Confidence: %{confidence}" msgid "Confidence: %{confidence}"
msgstr "" msgstr ""
...@@ -15416,6 +15419,9 @@ msgstr "" ...@@ -15416,6 +15419,9 @@ msgstr ""
msgid "Paste your public SSH key, which is usually contained in the file '~/.ssh/id_ed25519.pub' or '~/.ssh/id_rsa.pub' and begins with 'ssh-ed25519' or 'ssh-rsa'. Don't use your private SSH key." msgid "Paste your public SSH key, which is usually contained in the file '~/.ssh/id_ed25519.pub' or '~/.ssh/id_rsa.pub' and begins with 'ssh-ed25519' or 'ssh-rsa'. Don't use your private SSH key."
msgstr "" msgstr ""
msgid "Patch to apply"
msgstr ""
msgid "Path" msgid "Path"
msgstr "" msgstr ""
...@@ -17850,6 +17856,9 @@ msgstr "" ...@@ -17850,6 +17856,9 @@ msgstr ""
msgid "Remediated: needs review" msgid "Remediated: needs review"
msgstr "" msgstr ""
msgid "Remediations"
msgstr ""
msgid "Remember me" msgid "Remember me"
msgstr "" msgstr ""
...@@ -19741,6 +19750,9 @@ msgstr "" ...@@ -19741,6 +19750,9 @@ msgstr ""
msgid "Settings to prevent self-approval across all projects in the instance. Only an administrator can modify these settings." msgid "Settings to prevent self-approval across all projects in the instance. Only an administrator can modify these settings."
msgstr "" msgstr ""
msgid "Severity"
msgstr ""
msgid "Severity: %{severity}" msgid "Severity: %{severity}"
msgstr "" msgstr ""
...@@ -20067,6 +20079,9 @@ msgstr "" ...@@ -20067,6 +20079,9 @@ msgstr ""
msgid "Snowplow" msgid "Snowplow"
msgstr "" msgstr ""
msgid "Solution"
msgstr ""
msgid "Some child epics may be hidden due to applied filters" msgid "Some child epics may be hidden due to applied filters"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment