MCPcopy
hub / github.com/promptfoo/promptfoo / createScanEnv

Function createScanEnv

code-scan-action/src/main.ts:131–137  ·  view source on GitHub ↗
(oidcToken: string | undefined)

Source from the content-addressed store, hash-verified

129}
130
131function createScanEnv(oidcToken: string | undefined): Record<string, string> {
132 const env = createSubprocessEnv();
133 if (oidcToken) {
134 env.GITHUB_OIDC_TOKEN = oidcToken;
135 }
136 return env;
137}
138
139function loadGuidance(inputs: ActionInputs): string | undefined {
140 if (inputs.guidanceText && inputs.guidanceFile) {

Callers 1

runPromptfooScanFunction · 0.85

Calls 1

createSubprocessEnvFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…