Skip to content

Commit

Permalink
Sanitize app.dekorate.io/vcs-url kubernetes annotation
Browse files Browse the repository at this point in the history
Fixes: #38055
(cherry picked from commit 8afe4ff)
  • Loading branch information
geoand authored and gsmet committed Feb 13, 2024
1 parent 1a6f4cb commit 3a3b0d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
import io.dekorate.project.Project;
import io.dekorate.project.ScmInfo;
import io.dekorate.utils.Annotations;
import io.dekorate.utils.Git;
import io.dekorate.utils.Labels;
import io.dekorate.utils.Strings;
import io.fabric8.kubernetes.api.model.ContainerBuilder;
Expand Down Expand Up @@ -989,7 +990,7 @@ private static List<DecoratorBuildItem> createAnnotationDecorators(Optional<Proj
if (vcsUrl != null) {
result.add(new DecoratorBuildItem(target,
new AddAnnotationDecorator(name,
new Annotation(QUARKUS_ANNOTATIONS_VCS_URL, vcsUrl, new String[0]))));
new Annotation(QUARKUS_ANNOTATIONS_VCS_URL, Git.sanitizeRemoteUrl(vcsUrl), new String[0]))));
}

});
Expand Down

0 comments on commit 3a3b0d7

Please sign in to comment.