MCPcopy
hub / github.com/promptfoo/promptfoo / getActionInputs

Function getActionInputs

code-scan-action/src/main.ts:89–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89function getActionInputs(): ActionInputs {
90 return {
91 apiHost: core.getInput('api-host'),
92 minimumSeverity: resolveMinimumSeverityInput(),
93 configPath: core.getInput('config-path'),
94 guidanceText: core.getInput('guidance'),
95 guidanceFile: core.getInput('guidance-file'),
96 githubToken: core.getInput('github-token', { required: true }),
97 enableForkPrs: core.getBooleanInput('enable-fork-prs'),
98 // core.getInput returns '' when unset; normalize so a falsy check at the call site
99 // doesn't have to special-case the empty-string sentinel.
100 sarifOutputPath: core.getInput('sarif-output-path').trim() || undefined,
101 };
102}
103
104const SUBPROCESS_ENV_EXCLUSIONS = [
105 'ACTIONS_ID_TOKEN_REQUEST_TOKEN',

Callers 1

runCodeScanFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…