@iobroker/repochecker 3.5.6 → 3.5.7

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/README.md CHANGED
@@ -33,7 +33,7 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
33
33
  -->
34
34
 
35
35
  ## Changelog
36
- ### 3.5.6 (2025-05-17)
36
+ ### 3.5.7 (2025-05-17)
37
37
 
38
38
  - (mcm1957) add authorization for github using OWN_GITHUB_TOKEN.
39
39
 
package/lib/common.js CHANGED
@@ -13,9 +13,14 @@ axios.defaults.headers.common = {
13
13
  'Cache-Control': 'no-cache',
14
14
  Pragma: 'no-cache',
15
15
  Expires: '0',
16
- Authorization: process.env.OWN_GITHUB_TOKEN ? `token ${process.env.OWN_GITHUB_TOKEN}` : 'none',
16
+ // Authorization: process.env.OWN_GITHUB_TOKEN ? `token ${process.env.OWN_GITHUB_TOKEN}` : 'none',
17
17
  };
18
18
 
19
+ if (process.env.OWN_GITHUB_TOKEN) {
20
+ info('using authorization defined by OWN_GITHUB_TOKEN');
21
+ axios.defaults.headers.common['Authorization'] = `Bearer ${process.env.OWN_GITHUB_TOKEN}`;
22
+ }
23
+
19
24
  let gDebug = false;
20
25
  let gInfo = true;
21
26
  let gLocal = false;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.6",
2
+ "version": "3.5.7",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "axios": "^1.8.4",