Skip to content

Commit 224afe2

Browse files
committed
temporary debugging
1 parent 2258384 commit 224afe2

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

dist/main/index.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export async function run(context: Context): Promise<void> {
9494

9595
credentials.push(...registryCredentials)
9696

97+
console.log(`Using credentials: ${JSON.stringify(credentials)}`) // eslint-disable-line no-console
98+
9799
const updater = new Updater(
98100
updaterImage,
99101
PROXY_IMAGE_NAME,
@@ -240,12 +242,10 @@ export function credentialsFromEnv(): Credential[] {
240242

241243
const nonSecrets = ['type', 'url', 'username', 'host', 'replaces-base']
242244
for (const e of parsed) {
243-
console.log(`Credential keys for ${e.type}`) // eslint-disable-line no-console
244245
// Mask credentials to reduce chance of accidental leakage in logs.
245246
for (const [key, value] of Object.entries(e)) {
246-
console.log(` ${key}: ${value ? value.toString().length : 'undefined'}`) // eslint-disable-line no-console
247247
if (!nonSecrets.includes(key)) {
248-
core.setSecret((e as Record<string, unknown>)[key] as string)
248+
core.setSecret(value as string)
249249
}
250250
}
251251

0 commit comments

Comments
 (0)