bridgecrewio / yor

Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it.
https://www.yor.io
Apache License 2.0
822 stars 123 forks source link

fix gcp with perfix #548

Closed miri-kaufman closed 2 months ago

miri-kaufman commented 3 months ago

Problem description: Yor already handles fixing of certain label values based on the GCP constraints. Like '/' gets converted to '__' for git_file label value. But if yor argument tag-prefix is specified, this handling does not work.

Solution description: Checking whether there is a prefix in the tags and appropriate treatment

fixes:https://github.com/bridgecrewio/yor/issues/444

ChanochShayner commented 3 months ago

Looks good! Please look at the lint issues to see if they relate to you.