Skip to content

Commit

Permalink
feat: add a maintainer
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed May 8, 2024
1 parent 08fef04 commit 22083e0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Generate a list of plugins
run: |
mkdir -p site/data/v1 site/v1
cat plugins/*.yaml > site/data/plugins.yaml
run: cat plugins/*.yaml > site/data/index.yaml
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
Expand All @@ -45,7 +43,7 @@ jobs:
- name: Store a yaml file for the plugin list
run: |
mkdir -p site/public/v1
cp site/data/plugins.yaml site/public/v1
cp site/data/index.yaml site/public/v1
- uses: actions/upload-pages-artifact@v3
with:
path: site/public
Expand Down
5 changes: 3 additions & 2 deletions plugins/aqua.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- name: aqua
summary: A plugin for integration with Aqua Security SaaS platform
repo: https://github.com/aquasecurity/trivy-plugin-aqua
maintainer: aquasecurity
description: A plugin for integration with Aqua Security SaaS platform
repo: github.com/aquasecurity/trivy-plugin-aqua
5 changes: 3 additions & 2 deletions plugins/kubectl.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- name: kubectl
summary: A plugin scanning the images of a kubernetes resource
repo: https://github.com/aquasecurity/trivy-plugin-kubectl
maintainer: aquasecurity
description: A plugin scanning the images of a kubernetes resource
repo: github.com/aquasecurity/trivy-plugin-kubectl
Empty file added site/data/.gitkeep
Empty file.
12 changes: 7 additions & 5 deletions site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ <h1>{{ .Site.Title }}</h1>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Maintainer</th>
<th>Repository</th>
</tr>
</thead>
<tbody>
{{ range .Site.Data.v1.plugins }}
{{ range .Site.Data.index }}
<tr>
<td><a href="{{ .repo }}" target="_blank">{{ .name }}</a></td>
<td><a href="https://{{ .repo }}" target="_blank">{{ .name }}</a></td>
<td>{{ if .type }}{{ .type }}{{ else }}generic{{ end }}</td>
<td>{{ .summary }}</td>
<td>{{ .description }}</td>
<td>{{ .maintainer }}</td>
<td>
<a href="{{ .repo }}" target="_blank">
<img src="https://img.shields.io/github/stars/{{ replace .repo "https://github.com/" "" }}?style=social" alt="GitHub stars">
<a href="https://{{ .repo }}" target="_blank">
<img src="https://img.shields.io/github/stars/{{ replace .repo "github.com/" "" }}?style=social" alt="GitHub stars">
</a>
</td>
</tr>
Expand Down
3 changes: 1 addition & 2 deletions site/static/css/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.header {
background-color: #f8f9fa;
padding: 10px 0;
margin: 0;
margin-bottom: 30px;
margin: 0 0 30px;
}

.logo {
Expand Down

0 comments on commit 22083e0

Please sign in to comment.