Why?
We are currently setting a generic user agent here:
|
"-H" "User-Agent: github-actions-shared-workflows:/plugins/publish" |
This could be extended to give us more visibility into who is actually calling the API as in - which repository or plugin it actually is.
Here is what it looks like in the gcom logs https://ops.grafana-ops.net/goto/df600zl8suu4gd?orgId=stacks-27821
"userAgent": "github-actions-shared-workflows:/plugins/publish",
What / How
(whatever is simpler and more stable):
Change it either to:
"userAgent": "github-actions-shared-workflows:grafana/<repo-name>/plugins/publish",
or (we seem to have plugin.id in the same script)
"userAgent": "github-actions-shared-workflows:/<pluginId>/plugins/publish",
Why?
We are currently setting a generic user agent here:
plugin-ci-workflows/actions/plugins/publish/publish/publish.sh
Line 81 in 4232781
This could be extended to give us more visibility into who is actually calling the API as in - which repository or plugin it actually is.
Here is what it looks like in the gcom logs https://ops.grafana-ops.net/goto/df600zl8suu4gd?orgId=stacks-27821
What / How
(whatever is simpler and more stable):
Change it either to:
or (we seem to have plugin.id in the same script)