diff --git a/.github/workflows/declaration-rgpd.yml b/.github/workflows/declaration-rgpd.yml index f0aa7b5b..bb2751ac 100644 --- a/.github/workflows/declaration-rgpd.yml +++ b/.github/workflows/declaration-rgpd.yml @@ -50,4 +50,4 @@ jobs: run: | ls -la cat rgpd2.json - [[ $(cat rgpd2.json | jq '.[0].score') -eq "3" ]] || (echo "Error: Should score 3" && exit 1) + [[ $(cat rgpd2.json | jq '.[0].score') -eq "4" ]] || (echo "Error: Should score 4" && exit 1) diff --git a/check-url/action.yml b/check-url/action.yml index 2d00bf0a..5600c858 100644 --- a/check-url/action.yml +++ b/check-url/action.yml @@ -24,7 +24,7 @@ runs: echo "testing URL $1" - wget -q -S --no-check-certificate --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36" "${INPUT_URL}" + wget -q -S --no-check-certificate --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36 - dashlord" "${INPUT_URL}" if ! [ "$?" -ne 0 ]; then diff --git a/declaration-a11y/index.js b/declaration-a11y/index.js index 9771d6f9..ee390480 100644 --- a/declaration-a11y/index.js +++ b/declaration-a11y/index.js @@ -74,7 +74,12 @@ const analyseFile = async (filePath, { url } = {}) => { // warn: this wont work for SPA applications const analyseUrl = async (url) => { - const dom = await JSDOM.fromURL(url); + const resourceLoader = new jsdom.ResourceLoader({ + strictSSL: false, + userAgent: + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0 - dashlord", + }); + const dom = await JSDOM.fromURL(url, { resources: resourceLoader }); return analyseDom(dom, { url }); }; diff --git a/declaration-rgpd/index.js b/declaration-rgpd/index.js index 2da14d84..e8f11a2e 100644 --- a/declaration-rgpd/index.js +++ b/declaration-rgpd/index.js @@ -170,7 +170,12 @@ const analyseFile = async (filePath, { url, thirdPartiesOutput } = {}) => { // warn: this wont work for SPA applications const analyseUrl = async (url) => { - const dom = await JSDOM.fromURL(url); + const resourceLoader = new jsdom.ResourceLoader({ + strictSSL: false, + userAgent: + "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0 - dashlord", + }); + const dom = await JSDOM.fromURL(url, { resources: resourceLoader }); return analyseDom(dom, { url }); };