foo-software / lighthouse-check-action

GitHub Action for running @GoogleChromeLabs Lighthouse audits with all the bells and whistles 🔔 Multiple audits, Slack notifications, and more!
https://github.com/marketplace/actions/lighthouse-check
MIT License
471 stars 24 forks source link

Running the tests behind basic HTTP authentication #86

Closed willpaige closed 2 years ago

willpaige commented 2 years ago

Hi,

just wondering if there is any way to run the tests with some basic HTTP auth credentials?

Thanks for your time.

Will

adamhenson commented 2 years ago

Hello @willpaige - yes, you could use the extraHeaders option for basic authentication or other types of auth (that rely on headers).

extraHeaders: '{ "Authorization": "Basic <credentials>" }' 

Does that answer your question?

willpaige commented 2 years ago

Ahh yes perfect, sorry must've missed that when I skimmed over it. Thanks for your help