mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +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)
|
||||
try {
|
||||
setSecret(decodeURIComponent(value))
|
||||
} catch {
|
||||
// Ignore decoding errors
|
||||
} catch (error) {
|
||||
debug(
|
||||
`Failed to decode URL parameter: ${
|
||||
error instanceof Error ? error.message : String(error)
|
||||
}`
|
||||
)
|
||||
}
|
||||
return `${prefix}${paramName}=***`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user