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.
Files changed (2) hide show
  1. package/hdoc-validate.js +8 -2
  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
- throw `Unexpected Status Returned: ${status}`;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hdoc-tools",
3
- "version": "0.35.5",
3
+ "version": "0.35.6",
4
4
  "description": "Hornbill HDocBook Development Support Tool",
5
5
  "main": "hdoc.js",
6
6
  "bin": {