.setHeader("X-GitHub-Event", request.getGithubEventHeader())
.setHeader("X-Hub-Signature", request.getGithubSignatureHeader())
.setHeader("X-Hub-Signature-256", request.getGithubSignature256Header())
+ .setHeader("x-github-hook-installation-target-id", request.getGithubAppId())
.setBody(request.getPayload())
.setMediaType(MediaTypes.JSON)
).content();
/**
* This is part of the internal API.
* This is a POST request.
+ *
* @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/alm_integrations/webhook_github">Further information about this action online (including a response example)</a>
* @since 9.7
*/
private String githubSignatureHeader;
private String githubSignature256Header;
+ private String githubAppId;
+
/**
* This is a mandatory parameter.
*/
public String getGithubSignature256Header() {
return githubSignature256Header;
}
+
+ public String getGithubAppId() {
+ return githubAppId;
+ }
+
+ public SendGithubCodeScanningAlertWebhookPayloadRequest setGithubAppId(String githubAppId) {
+ this.githubAppId = githubAppId;
+ return this;
+ }
}