name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set new version from tag
run: echo "NEW_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Check if manifest is updated
run: |
current_version=$(cat plugin.yaml | grep 'version' | awk '{ print $2}' | tr -d '"') ;
if [ "$current_version" != "$NEW_VERSION" ]; then
echo "The version of the plugin in manifest is not updated. Please run 'make bump-manifest'"
exit 1
fi
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: make build
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
trivy-mcp-*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aquasecurity/trivy-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server