Skip to content

Commit d23a270

Browse files
docs: add container scan example and HTML output screenshot
1 parent 66f46f2 commit d23a270

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed
221 KB
Loading

gcp/website/frontend3/src/templates/home.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,25 @@ <h3 class="code-card-title">Guided Remediation (interactive)</h3>
242242
<md-icon-button class="icon"><md-icon>content_copy</md-icon></md-icon-button>
243243
</clipboard-copy>
244244
</div>
245+
<div class="code-card mdc-layout-grid__cell--span-6 mdc-layout-grid__cell--span-12-tablet">
246+
<h3 class="code-card-title">🐳 Scan Container Images</h3>
247+
<p class="description">
248+
You can use <a href="https://github.com/google/osv-scanner">OSV-Scanner</a> to scan container images (like Docker images) for known vulnerabilities in installed packages.
249+
</p>
250+
<pre class="code-card-content" id="example-container-image-scan">
251+
osv-scanner scan image alpine:3.12
252+
</pre>
253+
<p class="description">
254+
To view a comprehensive, user-friendly HTML report, run:
255+
</p>
256+
<pre class="code-card-content" id="example-container-html-report">
257+
osv-scanner scan image --serve alpine:3.12
258+
</pre>
259+
<div class="image-container" style="margin-top: 12px;">
260+
<img src="/img/container-scan-html.png" alt="Screenshot of container scan HTML output" loading="lazy" style="max-width: 100%; border-radius: 6px; border: 1px solid #ccc;">
261+
</div>
262+
</div>
263+
245264
</div>
246265
<div class="mdc-layout-grid__cell--span-12">
247266
<div class="cta">

gcp/website/frontend3/webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232
plugins: [
3333
new CopyPlugin({
3434
patterns: [
35-
{ from: './src/templates/*.html', to: '[name].html' },
35+
{ from: './src/templates', to: '.', globOptions: { ignore: ['**/base.html'] } },
3636
{ from: './img/*', to: 'static/img/[name][ext]' },
3737
],
3838
}),

0 commit comments

Comments
 (0)