hdoc-tools 0.35.5 → 0.35.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hdoc-validate.js +8 -2
- package/package.json +1 -1
package/hdoc-validate.js
CHANGED
@@ -599,8 +599,14 @@ const e = require("express");
|
|
599
599
|
return res.status;
|
600
600
|
}, links[i]);
|
601
601
|
}
|
602
|
-
if ((status < 200 || status > 299) && status !== 304)
|
603
|
-
|
602
|
+
if ((status < 200 || status > 299) && status !== 304) {
|
603
|
+
if (status === 403 && links[i].includes(".hornbill.com")) {
|
604
|
+
// STEVEG - do nothing here, as it always returns a 403 for Hornbill sites when accessing through GitHub Actions
|
605
|
+
// Works totally fine locally or in hdocpub, still working out what's causing this there
|
606
|
+
} else {
|
607
|
+
throw `Unexpected Status Returned: ${status}`;
|
608
|
+
}
|
609
|
+
}
|
604
610
|
}
|
605
611
|
} catch (error) {
|
606
612
|
throw error;
|