Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 0195696

Browse files
author
Bernhard Grünewaldt
committed
notify endpoint can be called without authentication
1 parent 8582140 commit 0195696

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/main/java/io/codeclou/jenkins/github/webhook/notifier/plugin/GithubWebhookNotifierPlugin.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.google.gson.Gson;
88
import com.google.gson.JsonSyntaxException;
99
import hudson.Plugin;
10+
import hudson.model.UnprotectedRootAction;
1011
import hudson.util.HttpResponses;
1112
import jenkins.model.Jenkins;
1213
import org.apache.commons.io.IOUtils;
@@ -33,7 +34,22 @@
3334
import java.security.cert.X509Certificate;
3435

3536

36-
public class GithubWebhookNotifierPlugin extends Plugin {
37+
public class GithubWebhookNotifierPlugin extends Plugin implements UnprotectedRootAction {
38+
39+
@Override
40+
public String getUrlName() {
41+
return "github-webhook-notifier-plugin";
42+
}
43+
44+
@Override
45+
public String getIconFileName() {
46+
return null;
47+
}
48+
49+
@Override
50+
public String getDisplayName() {
51+
return "github-webhook-notifier-plugin";
52+
}
3753

3854
/*
3955
* http://jenkins.foo/plugin/github-webhook-notifier-plugin/receive

0 commit comments

Comments
 (0)