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 975ef81
Show file tree
Hide file tree
Showing 18 changed files with 284 additions and 10 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
3 changes: 2 additions & 1 deletion 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
maintainer: aquasecurity
description: A plugin for integration with Aqua Security SaaS platform
repo: https://github.com/aquasecurity/trivy-plugin-aqua
3 changes: 2 additions & 1 deletion 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
maintainer: aquasecurity
description: A plugin scanning the images of a kubernetes resource
repo: https://github.com/aquasecurity/trivy-plugin-kubectl
Empty file added site/data/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions site/data/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: aqua
maintainer: aquasecurity
summary: A plugin for integration with Aqua Security SaaS platform
repo: https://github.com/aquasecurity/trivy-plugin-aqua
- name: kubectl
maintainer: aquasecurity
summary: A plugin scanning the images of a kubernetes resource
repo: https://github.com/aquasecurity/trivy-plugin-kubectl
6 changes: 4 additions & 2 deletions site/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ <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>{{ 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">
Expand Down
48 changes: 48 additions & 0 deletions site/public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<title>Trivy Plugins</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="//localhost:1313/css/style.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<style>
.stars {
display: inline-block;
vertical-align: middle;
margin-left: 10px;
}
</style>
</head>

<header class="header">
<div class="container container-header">
<div class="logo">
<a href="//localhost:1313/" class="header-logo">
<img src="//localhost:1313/img/trivy-logo.svg" alt="Trivy Logo" style="height: 70px;">
</a>
</div>
</div>
</header>



<body>
<main>


<h1 class="display-3 text-danger">Not found</h1>

<p class="lead">
Sorry, this URL cannot be found. Maybe it’s moved.
</p>

<a href=" / " class="btn btn-lg btn-primary">&larr; Home</a>


</main>
</body>
</html>

16 changes: 16 additions & 0 deletions site/public/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.header {
background-color: #f8f9fa;
padding: 10px 0;
margin: 0 0 30px;
}

.logo {
display: flex;
align-items: center;
justify-content: flex-start;
}

.header-logo {
margin-top: -10px;
margin-left: 120px;
}
85 changes: 85 additions & 0 deletions site/public/img/trivy-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions site/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Hugo 0.125.6"><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<title>Trivy Plugins</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="//localhost:1313/css/style.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<style>
.stars {
display: inline-block;
vertical-align: middle;
margin-left: 10px;
}
</style>
</head>

<header class="header">
<div class="container container-header">
<div class="logo">
<a href="//localhost:1313/" class="header-logo">
<img src="//localhost:1313/img/trivy-logo.svg" alt="Trivy Logo" style="height: 70px;">
</a>
</div>
</div>
</header>



<body>
<main>

<body>
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<h1>Trivy Plugins</h1>
<p>Below you will find the list of Trivy plugins distributed on the centralized
<a href="https://github.com/aquasecurity/trivy-plugin-index">trivy-plugin-index</a>. To install these plugins on your machine:</p>
<ol>
<li><a href="https://aquasecurity.github.io/trivy/v0.51/getting-started/installation/">Install the latest version of Trivy</a></li>
<li>Run <code>trivy plugin install &lt;PLUGIN_NAME&gt;</code> to install a plugin.</li>
</ol>
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Maintainer</th>
<th>Repository</th>
</tr>
</thead>
<tbody>

<tr>
<td><a href="https://github.com/aquasecurity/trivy-plugin-aqua" target="_blank">aqua</a></td>
<td>generic</td>
<td>A plugin for integration with Aqua Security SaaS platform</td>
<td>aquasecurity</td>
<td>
<a href="https://github.com/aquasecurity/trivy-plugin-aqua" target="_blank">
<img src="https://img.shields.io/github/stars/aquasecurity/trivy-plugin-aqua?style=social" alt="GitHub stars">
</a>
</td>
</tr>

<tr>
<td><a href="https://github.com/aquasecurity/trivy-plugin-kubectl" target="_blank">kubectl</a></td>
<td>generic</td>
<td>A plugin scanning the images of a kubernetes resource</td>
<td>aquasecurity</td>
<td>
<a href="https://github.com/aquasecurity/trivy-plugin-kubectl" target="_blank">
<img src="https://img.shields.io/github/stars/aquasecurity/trivy-plugin-kubectl?style=social" alt="GitHub stars">
</a>
</td>
</tr>

</tbody>
</table>
</div>
</div>
</div>
</body>

</main>
</body>
</html>

11 changes: 11 additions & 0 deletions site/public/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Trivy Plugins</title>
<link>//localhost:1313/</link>
<description>Recent content on Trivy Plugins</description>
<generator>Hugo</generator>
<language>en-us</language>
<atom:link href="//localhost:1313/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
1 change: 1 addition & 0 deletions site/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
User-agent: *
7 changes: 7 additions & 0 deletions site/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>//localhost:1313/</loc>
</url>
</urlset>
Loading

0 comments on commit 975ef81

Please sign in to comment.