I am having difficulties with the plugin publisher CI (release.yml) that came packaged with the starter plugin. It is getting stuck on the Lint Plugin step, specifically it cannot find a valid license. My plugin does not use a typical license (GPL, MIT…) but I do have a modified BSD license called LICENSE in the repository root folder. I am getting the following error from the workflow:
~/work/{repo}/{repo}
error: Valid license not found
detail: Could not find a license file inside the plugin archive or the provided license is not compatible with Grafana plugins. Please refer to https://grafana.com/licensing/ for more information.
Error: Process completed with exit code 1.
I am assuming the error arises because of the custom license. What should I do - can I skip the Lint Plugin step or will I get problems when trying to publish to the Grafana plugin repository? Thanks!
Thank you for your advice. I think one solution is to create a new config file to use locally in my own GitHub CI/CD pipeline, but I think it would still fail when submitting to the plugin repository in Grafana.com. But, this might not be something I need to worry about.
There are some artifacts in here from some bug I experienced where I was stuck using an older version of the create-plugin tool, so many of my files were out of date. I re-built the starter plugin using npx @grafana/create-plugin@latest and migrated my code to those files. Now, the CI uses default.yaml as the configuration file by default. (Also, this step is now called Validate Plugin.)
Regardless, I ended up using a custom config file using on the code you sent. (Replace {path-to-custom} with the configuration file path.)
And this works perfectly on my end. I expect that I will still get errors for invalid license files when submitting this to Grafana.com, but this is a step in the direction I need! Thank you.