Skip to content

Extend user agent of publishing workflow #429

Description

@tolzhabayev

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",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions