INNER CODE UNIT · TypeScript

log

EndBug/add-and-commit · src/util.ts:140

export function log(err: any, data?: any) {
  if (data) console.log(neutralizeForLog(data));
  if (err) {
    const sanitized = neutralizeForLog(err);
    if (typeof sanitized === 'string' || sanitized instanceof Error) {
      core.error(sanitized);
    } else {
      core.error(String(sanitized));
    }
  }
}

/** Git identity keys this action sets; safe to log (no credentials). */
const GIT_IDENTITY_CONFIG_KEYS = [
  'user.name',
  'user.email',
  'author.name',
  'author.email',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…