Benign go Download

custom-copilot-rag-custom-api/src/adapter.js

Reads secret-like credential env variableContains a hardcoded remote HTTP(S) URL
SHA-2563c7cdf0cd320ebdd009bb82ed6a0dac7a4ecd9bcbec6cd2e57bcaaff0b403e85
MaleculeH₂(CmOs)

Evidence

English function-word token "the" lines 1–5
1// Import required bot services.
2// See https://aka.ms/bot-services to learn more about the different parts of a bot.
3const {
4 CloudAdapter,
5 ConfigurationServiceClientCredentialFactory …
CommonJS local-module require call lines 6–11
6:16… BotFrameworkAuthentication,
7} = require("botbuilder");
8
9const config = require("./config");
10
11const botFrameworkAuthentication = new Configurati …
Reads secret-like credential env variable lines 13–21
13:49… y({
14 MicrosoftAppId: config.botId,
15 MicrosoftAppPassword: process.env.BOT_PASSWORD,
16 MicrosoftAppType: "MultiTenant",
17 })
⋯4 lines
English function-word token "for" lines 22–27
22:29… pter(botFrameworkAuthentication);
23
24// Catch-all for errors.
25const onTurnErrorHandler = async (context, error) => {
26 // This check writes out errors to console log .vs. app insights.
27 // NOTE: In production environment, yo …
Contains a hardcoded remote HTTP(S) URL lines 34–42
34:26… ceActivity(
35 "OnTurnError Trace",
36 `${error}`,
37 "https://www.botframework.com/schemas/error",
38 "TurnError"
39 );
40
41 // Send a message to the user
42 await context.sendActivity(`The bot encountered …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.