mirror of
https://github.com/github/codeql-action.git
synced 2026-01-03 05:00:04 +08:00
Use core.isDebug() instead of accessing env var
This commit is contained in:
@@ -186,10 +186,10 @@ async function run() {
|
||||
getOptionalInput("config-file"),
|
||||
getOptionalInput("db-location"),
|
||||
// Debug mode is enabled if:
|
||||
// - The `init` Action is passed `debug: true`.
|
||||
// - Actions step debugging is enabled (e.g. by [enabling debug logging for a rerun](https://docs.github.com/en/actions/managing-workflow-runs/re-running-workflows-and-jobs#re-running-all-the-jobs-in-a-workflow),
|
||||
// or by setting the `ACTIONS_STEP_DEBUG` secret to `true`).
|
||||
// - The `init` Action is passed `debug: true`.
|
||||
getOptionalInput("debug") === "true" || !!process.env["RUNNER_DEBUG"],
|
||||
getOptionalInput("debug") === "true" || core.isDebug(),
|
||||
getOptionalInput("debug-artifact-name") || DEFAULT_DEBUG_ARTIFACT_NAME,
|
||||
getOptionalInput("debug-database-name") || DEFAULT_DEBUG_DATABASE_NAME,
|
||||
repositoryNwo,
|
||||
|
||||
Reference in New Issue
Block a user