Skip to content

Commit

Permalink
fix(security): Genereate Fluid-Attacks SAST Scan Results
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Sep 20, 2024
1 parent 1cc8742 commit 5780708
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
"LICENSE_EMAILENGINE.txt",
"help.txt",
"version-info.json",
"sbom.json"
"sbom.json",
"Fluid-Attacks-Results.csv"
],
"targets": [
"latest-linux-x64",
Expand Down
9 changes: 8 additions & 1 deletion views/legal.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,15 @@
<li class="list-group-item">
<a href="/sbom.json" download="sbom.json">
<i class="fas fa-cloud-download-alt fa-fw"></i>
<strong>Software Bill of Materials</strong>
<strong>Software Bill of Materials (JSON)</strong>
</a>
</li>

<li class="list-group-item"></li>
<a href="/Fluid-Attacks-Results.csv" download="Fluid-Attacks-Results.csv">
<i class="fas fa-cloud-download-alt fa-fw"></i>
<strong>Fluid-Attacks SAST Scan Results (CSV)</strong>
</a>
</li>
</ul>
</div>
11 changes: 11 additions & 0 deletions workers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,17 @@ const init = async () => {
}
});

server.route({
method: 'GET',
path: '/Fluid-Attacks-Results.csv',
handler: {
file: { path: pathlib.join(__dirname, '..', 'Fluid-Attacks-Results.csv'), confine: false }
},
options: {
auth: false
}
});

server.route({
method: 'GET',
path: '/license.html',
Expand Down

0 comments on commit 5780708

Please sign in to comment.