Skip to content

Commit

Permalink
feat: add output support
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed May 10, 2024
1 parent 113d70f commit e2c96be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions plugins/referrer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: referrer
maintainer: aquasecurity
description: A plugin for OCI referrers
repository: github.com/aquasecurity/trivy-plugin-referrer
output: true
4 changes: 2 additions & 2 deletions site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ <h1>{{ .Site.Title }}</h1>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Maintainer</th>
<th>Output</th>
<th>Repository</th>
</tr>
</thead>
<tbody>
{{ range .Site.Data.index }}
<tr>
<td><a href="https://{{ .repository }}" target="_blank">{{ .name }}</a></td>
<td>{{ if .type }}{{ .type }}{{ else }}generic{{ end }}</td>
<td>{{ .description }}</td>
<td>{{ .maintainer }}</td>
<td class="text-center">{{ if .output }}✓{{ end }}</td>
<td>
<a href="https://{{ .repository }}" target="_blank">
<img src="https://img.shields.io/github/stars/{{ replace .repository "github.com/" "" }}?style=social" alt="GitHub stars">
Expand Down
4 changes: 4 additions & 0 deletions site/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
margin-top: -10px;
margin-left: 120px;
}

.text-center {
text-align: center;
}

0 comments on commit e2c96be

Please sign in to comment.