We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa4caff commit e51b591Copy full SHA for e51b591
src/functions/teams_notifier.ts
@@ -50,14 +50,14 @@ function validateTeamsWebhook(webhook: string): string | null {
50
51
export const notifyTeams = async (eventData: SecretScanningAlertWebHookPayload) => {
52
// get Teams webhook out of app settings in Azure Function
53
- const teamsWebhook = process.env.TEAMS_WEBHOOK;
+ const teamsWebhook = process.env.TEAMS_WEBHOOK_URL;
54
55
if (!teamsWebhook) {
56
- throw new Error("TEAMS_WEBHOOK is not set");
+ throw new Error("TEAMS_WEBHOOK_URL is not set");
57
}
58
59
if (!validateTeamsWebhook(teamsWebhook)) {
60
- throw new Error("TEAMS_WEBHOOK is not valid");
+ throw new Error("TEAMS_WEBHOOK_URL is not valid");
61
62
63
// notify Teams using the webhook
0 commit comments