An example plugin for Chainloop that uses the experimental CLI plugin API.
Keep in mind that this uses the experimental CLI plugin API, which is subject to change and is not yet part of the Chainloop main branch. You need to check out the code from the 2090 pull request branch and:
go mod edit -replace github.com/chainloop-dev/chainloop=../../chainloop/
The above command should reflect your directory structure. After that run:
go mod tidy
Before you'll be able to complie the code.
go build -o plugin ./cmd/
mv plugin "$HOME/Library/Application Support/chainloop/plugins/"