Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release scout-audit #48

Merged
merged 27 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0d6d004
Add publish vscode extension
jgcrosta May 9, 2024
d2af7de
Test package.json update without release
jgcrosta May 9, 2024
423aaea
Edit workflow
jgcrosta May 9, 2024
e234950
Create release-extension.yml
jgcrosta May 9, 2024
dc3fce6
Edit
jgcrosta May 9, 2024
0565d4b
Test release
jgcrosta May 9, 2024
ad856f4
Test
jgcrosta May 9, 2024
ae4039c
Update extension
jgcrosta May 9, 2024
0ab9546
Update release-extension.yml
jgcrosta May 10, 2024
fdf2bee
updated readme file
matiascabello May 14, 2024
42f5f39
Push cargo.lock
jgcrosta May 14, 2024
73aea45
Delete duplicate code
jgcrosta May 14, 2024
141a8a4
Edit markdown to support pure md, and md with style
jgcrosta May 14, 2024
d9bc3f3
Merge pull request #41 from CoinFabrik/doc/update-readme
matiascabello May 14, 2024
6633968
Update cargo.lock
jgcrosta May 14, 2024
3422464
Add new json output, only include scout vulnerabilities in the report
jgcrosta May 15, 2024
300e589
Merge pull request #39 from CoinFabrik/34-update-ci-to-publish-vscode…
tenuki May 15, 2024
ac48dbb
Merge pull request #42 from CoinFabrik/9-implement-vulnerability-tabl…
tenuki May 15, 2024
7289d04
Merge branch 'develop' into 40-invalid-json-output
tenuki May 15, 2024
af38e96
Merge pull request #43 from CoinFabrik/40-invalid-json-output
tenuki May 15, 2024
1aaeef2
Edit tera and lib
jgcrosta May 16, 2024
479208c
Edit vulnerabilities column
jgcrosta May 16, 2024
b11b5e4
Remove unwanted line
jgcrosta May 16, 2024
73aded3
Set third column sticky
jgcrosta May 16, 2024
2738cfd
Small changes to md
jgcrosta May 16, 2024
477dcf0
Update template.md
jgcrosta May 17, 2024
2bb966f
Merge pull request #45 from CoinFabrik/44-html-report-refinement
tenuki May 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set third column sticky
  • Loading branch information
jgcrosta committed May 16, 2024
commit 73aded39d3869211897cd98b5f6ef60e16f311ff
9 changes: 8 additions & 1 deletion apps/cargo-scout-audit/src/output/html/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
<div class="flex-grow flex sm:flex-row flex-col">
{% include "categories.html" %}
{% include "findings_list.html" %}
{% include "vulnerability_details.html" %}
<div class="sm:w-1/3 sm:overflow-y-auto">
{% include "vulnerability_details.html" %}
</div>
</div>

<footer class="p-4 text-center bg-gray-800 border-t border-gray-700 text-xs sm:text-base">
Expand Down Expand Up @@ -96,6 +98,11 @@
}
}

.sticky {
position: sticky;
top: 0;
}

.severity-critical {
background-color: #e3342f;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@



<div id="vulnerabilityDetails" class="p-4 max-w-4xl mx-auto bg-gray-800 rounded-lg text-gray-100">
<div id="vulnerabilityDetails" class="p-4 max-w-4xl mx-auto bg-gray-800 rounded-lg text-gray-100 sticky">
{% for finding in report.findings %}
{% set category = report.categories | filter(attribute="id", value=finding.category_id) | first %}

Expand All @@ -62,13 +62,13 @@ <h3 class="text-xl font-bold text-blue-400"> {{ vulnerability.name }}</h3>
<p class="text-gray-400">Source: <span class="font-mono text-gray-200">{{ finding.file }}</span></p>
<p class="text-gray-400">Span: <span class="font-mono text-gray-200">{{ finding.span }}</span></p>

{%if finding.code_snippet != "" %}
<div class="code-snippet-container bg-gray-800 rounded overflow-auto font-mono text-green-400" data-lines="">
{% for line in finding.code_snippet | split(pat="\n") %}
<div class="code-line">{{ line }}</div>
{% endfor %}
</div>
{%if finding.code_snippet != "" %}
<div class="code-snippet-container bg-gray-800 rounded overflow-auto font-mono text-green-400" data-lines="">

{% for line in finding.code_snippet | split(pat="\n") %}
<div class="code-line">{{ line }}</div>
{% endfor %}
</div>
{% endif %}
<p class="text-gray-400">Error message: <span class="font-mono text-gray-200">{{ finding.error_message }}</span>
</p>
Expand Down