()
| 87 | } |
| 88 | |
| 89 | function 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 | |
| 104 | const SUBPROCESS_ENV_EXCLUSIONS = [ |
| 105 | 'ACTIONS_ID_TOKEN_REQUEST_TOKEN', |
no test coverage detected
searching dependent graphs…