mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 03:29:06 +08:00
Log debug error when failing to decode
This commit is contained in:
parent
3ac34ffcb7
commit
abd9054c61
8
packages/cache/src/internal/shared/util.ts
vendored
8
packages/cache/src/internal/shared/util.ts
vendored
@ -77,8 +77,12 @@ function maskSigWithRegex(url: string): string {
|
|||||||
setSecret(value)
|
setSecret(value)
|
||||||
try {
|
try {
|
||||||
setSecret(decodeURIComponent(value))
|
setSecret(decodeURIComponent(value))
|
||||||
} catch {
|
} catch (error) {
|
||||||
// Ignore decoding errors
|
debug(
|
||||||
|
`Failed to decode URL parameter: ${
|
||||||
|
error instanceof Error ? error.message : String(error)
|
||||||
|
}`
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return `${prefix}${paramName}=***`
|
return `${prefix}${paramName}=***`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user