function maskSigUrl(url) {
    if (!url)
        return;
    try {
        const parsedUrl = new URL(url);
        const signature = parsedUrl.searchParams.get('sig');
        if (signature) {
            (0, core_1.setSecret)(signature);
            (0, core_1.setSecret)(encodeURIComponent(signature));
        }
    }
    catch (error) {
        (0, core_1.debug)(`Failed to parse URL: ${url} ${error instanceof Error ? error.message : String(error)}`);
    }
}
Masks the `sig` parameter in a URL and sets it as a secret.

@param url - The URL containing the signature parameter to mask
@remarks
This function attempts to parse the provided URL and identify the 'sig' query parameter.
If found, it registers both the raw and URL-encoded signature values as secrets using
the Actions `setSecret` API, which prevents them from being displayed in logs.

The function handles errors gracefully if URL parsing fails, logging them as debug messages.

@example
```typescript
// Mask a signature in an Azure SAS token URL
maskSigUrl('https://example.blob.core.windows.net/container/file.txt?sig=abc123&se=2023-01-01');
```