krzko / opentelemetry-shell

🚦 OpenTelemetry functions for shells
Apache License 2.0
66 stars 6 forks source link

Sanitise $GITHUB_WORKFLOW #25

Open krzko opened 2 years ago

krzko commented 2 years ago

Describe the bug

If $GITHUB_WORKFLOW includes special character the metric push will fail

To Reproduce

Steps to reproduce the behavior:

  1. Worflow name: Foo Bar (Baz)
  2. See error

Expected behavior

To sanitise this and become valid to post to OTEL receiver

Screenshots

-

Environment

Additional context

-