Skip to content

Commit

Permalink
Merge pull request #272 from macbre/ignore-ssl-errors-handling
Browse files Browse the repository at this point in the history
Improve handling of --ignore-ssl-errors option
  • Loading branch information
macbre authored Mar 22, 2021
2 parents 4fd258d + 24259b7 commit 24ce263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,6 @@ jobs:

- name: Run bin/analyze-css.js for external file over HTTP
run: ./bin/analyze-css.js --url http://s3.macbre.net/analyze-css/propertyResets.css -p | jq .metrics

- name: Run bin/analyze-css.js for external file over HTTPS (--ignore-ssl-errors)
run: ./bin/analyze-css.js --url https://s3.macbre.net/analyze-css/propertyResets.css --ignore-ssl-errors | jq .metrics
2 changes: 1 addition & 1 deletion bin/analyze-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ else {
return;
}

runnerOpts.ignoreSslErrors = program["ignore-ssl-errors"];
runnerOpts.ignoreSslErrors = options.ignoreSslErrors === true;
runnerOpts.noOffenders = program.offenders === false;
runnerOpts.authUser = program["auth-user"];
runnerOpts.authPass = program["auth-pass"];
Expand Down

0 comments on commit 24ce263

Please sign in to comment.