Competition-detector-fix: fixed helpscout detector regex and verifier #2056
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
I created a helpscout account and regenerated token many times and it always gave a [a-z0-9]{40} char long token and not the [A-Za-z0-9]{56} one so i replaced the regex. Maybe that was old format and not valid anymore. i have no way to check if the old format style tokens are supported or not. if they are, we can have a OR style regex match or i can close this PR and create a V2 style detector for the helpscout.
Verifier:
https://developer.helpscout.com/docs-api/
It suggests a basic auth-style API call so added that logic as well
![helpscout](https://private-user-images.githubusercontent.com/10580970/279113777-aa6ab8a5-e5ec-4368-b0dc-20a80ec187ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzAzODEsIm5iZiI6MTczOTkzMDA4MSwicGF0aCI6Ii8xMDU4MDk3MC8yNzkxMTM3NzctYWE2YWI4YTUtZTVlYy00MzY4LWIwZGMtMjBhODBlYzE4N2NhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDAxNTQ0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ4ZDAzZDk3ODdiNjc4OTY2NmMzNDM2MDNlNTdhZDQzZTc3ZGY0OGI0ZGMyZDYxZDM4MzkyMDk2OTRlNzNjYWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.d6nma23bmlP7ksVsjqBqQemV49bwGkpa5aiJKiamO6w)
Checklist:
make test-community
)?make lint
this requires golangci-lint)?