mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-06 03:42:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7529e4a3c | ||
|
|
f6d01ca039 | ||
|
|
591ad44ffa | ||
|
|
8867915f0f | ||
|
|
7dd6019f01 | ||
|
|
ca5a35abb8 | ||
|
|
14cda6233a | ||
|
|
04035231b6 | ||
|
|
b2202a0d76 | ||
|
|
80b0a26ad0 | ||
|
|
12013e0fba | ||
|
|
74bb419260 | ||
|
|
4fb783b11e | ||
|
|
6f2c316d22 | ||
|
|
6e4b56e5e3 | ||
|
|
666a2087e8 | ||
|
|
f4fed242e9 | ||
|
|
7d69cd2599 | ||
|
|
afc08bfff9 | ||
|
|
53f5229e3e | ||
|
|
6ac2f27f2e | ||
|
|
371c73e8fc | ||
|
|
8e4d04d6fc | ||
|
|
dfe8f5a1cf | ||
|
|
e72c29f1b0 | ||
|
|
25b1954825 | ||
|
|
a69c5ecff9 | ||
|
|
faba2f99e1 | ||
|
|
295ecdd8cc | ||
|
|
ce6968d1a5 | ||
|
|
35aeed9f81 | ||
|
|
34a2050bd6 | ||
|
|
5174071075 | ||
|
|
1a871d5628 | ||
|
|
a8a254a2f3 | ||
|
|
6071691ec6 | ||
|
|
a86aa9018d | ||
|
|
29628405e4 | ||
|
|
11d2e2cbe0 | ||
|
|
2a17e6d503 | ||
|
|
130a18f40d | ||
|
|
dc0acd68cd | ||
|
|
4eac4a916f | ||
|
|
1eac5d2b20 | ||
|
|
27f512482f | ||
|
|
1be938d0fa | ||
|
|
a8eebb7710 | ||
|
|
f8be0aea65 | ||
|
|
6ade2f452b | ||
|
|
cec4b0f57d | ||
|
|
46abe4adb0 | ||
|
|
b7e719fd16 | ||
|
|
4d151cebf0 | ||
|
|
0bb0cfd12c | ||
|
|
199b25c5d7 | ||
|
|
8674d082f4 | ||
|
|
1c96c104d0 | ||
|
|
c1027a9068 | ||
|
|
cdc19d6203 | ||
|
|
95da0c450e | ||
|
|
ce94f138a7 | ||
|
|
4d2bafb6c3 | ||
|
|
e40f3217cd | ||
|
|
467454dfd7 | ||
|
|
9479e7c9a8 | ||
|
|
fefc1f9aee | ||
|
|
0f818bf9e2 | ||
|
|
1376d90bcd | ||
|
|
375e3132d3 | ||
|
|
92712ddecd | ||
|
|
728961f575 | ||
|
|
3045e86700 | ||
|
|
0e8a9198a4 | ||
|
|
30fa1dd53a | ||
|
|
774a5d8c88 | ||
|
|
66aac79f2b | ||
|
|
7b402fe76b | ||
|
|
38fb01f7d7 | ||
|
|
3ac895b8a5 | ||
|
|
0f407ce1a3 | ||
|
|
00a121b1e4 | ||
|
|
d17b73bb3e | ||
|
|
15174944fd | ||
|
|
064110150e | ||
|
|
adb2c26afb | ||
|
|
0596fb1f5a | ||
|
|
70a9cce55f | ||
|
|
0b8f000491 | ||
|
|
2d2680301d | ||
|
|
9b241d5d02 | ||
|
|
d54d7e3da0 | ||
|
|
0281a52d0a | ||
|
|
5654fe89cb | ||
|
|
3ed0894220 | ||
|
|
c42ba4823c | ||
|
|
1ebad0f5c5 | ||
|
|
ecb9d99d24 | ||
|
|
23b8c3295b | ||
|
|
c359fbafc0 | ||
|
|
e9dd62f003 | ||
|
|
48ddfc3eee | ||
|
|
720fb33985 | ||
|
|
bcd64ad53e | ||
|
|
ebcbb513d0 | ||
|
|
aed0ac4ee1 | ||
|
|
74f0a7c3a7 | ||
|
|
602564070b | ||
|
|
7128f954cf | ||
|
|
7bdc8ca397 | ||
|
|
32c916206b | ||
|
|
ff17108d3a | ||
|
|
746c4244eb | ||
|
|
e942993c7e | ||
|
|
89f3fe2cb0 | ||
|
|
16f12ba422 | ||
|
|
5a2721193b | ||
|
|
4f1c97c250 | ||
|
|
dca1a56a26 | ||
|
|
61527daead | ||
|
|
7b58da1026 | ||
|
|
9d85c3a123 | ||
|
|
1e4d583a0d | ||
|
|
b045e03067 | ||
|
|
29cc943113 | ||
|
|
de8b569041 | ||
|
|
d5381019ea | ||
|
|
77a48419e2 | ||
|
|
6fd1c263e6 | ||
|
|
c51dac182b | ||
|
|
5f2f44f83f | ||
|
|
659f32984e | ||
|
|
494715d408 | ||
|
|
dd1a94983f | ||
|
|
0af61445cb | ||
|
|
4f42c5a7b1 | ||
|
|
330a803aab | ||
|
|
f053b85b61 | ||
|
|
eb473199db | ||
|
|
38c7b44f92 | ||
|
|
eecf1490b7 | ||
|
|
6b4dd88bac | ||
|
|
ce2481e6e2 | ||
|
|
5e1973681c | ||
|
|
4d5fc18389 | ||
|
|
647843c466 | ||
|
|
ed21f4018a | ||
|
|
d92e199590 | ||
|
|
7cfafcc02f | ||
|
|
3ec09e80b9 | ||
|
|
43181a83ed | ||
|
|
17dd4ee384 | ||
|
|
fab02561dc | ||
|
|
3ff8e9e7b1 | ||
|
|
1849f46185 | ||
|
|
4162f2fe0a | ||
|
|
d1ebfb8a86 | ||
|
|
dbc0a99554 | ||
|
|
663ba913f2 | ||
|
|
81c27aaad6 | ||
|
|
30b4a4a205 | ||
|
|
fec73bbade | ||
|
|
62aafe9158 | ||
|
|
bca4fc9648 | ||
|
|
0feeab8b58 | ||
|
|
7dc10fb8b0 | ||
|
|
695e7f5bb6 | ||
|
|
ba62b4b2d3 | ||
|
|
42e8264603 | ||
|
|
3503a0383a | ||
|
|
81cb3fce2d | ||
|
|
3ab1f675d0 | ||
|
|
cc167d558b | ||
|
|
971de3b854 | ||
|
|
d493b43697 | ||
|
|
dfa00fb573 | ||
|
|
8cefacd9ff | ||
|
|
91d69b4470 | ||
|
|
a8b023324b | ||
|
|
68349b4c03 | ||
|
|
46ff41f1b4 | ||
|
|
e093ba8341 | ||
|
|
c7fd479ea4 | ||
|
|
acdd6bda8b | ||
|
|
4114aee274 | ||
|
|
827740e9a7 | ||
|
|
3e2652b61f | ||
|
|
c7b55f1e61 | ||
|
|
bf505ae10f | ||
|
|
cb736fb0fe | ||
|
|
5cb49b7067 | ||
|
|
7c066c2a5a | ||
|
|
f3a0237591 | ||
|
|
50daa4a9c7 | ||
|
|
6e0eaf1eed | ||
|
|
5fa278c6eb | ||
|
|
44877bb877 | ||
|
|
ec89456961 | ||
|
|
93ed634295 | ||
|
|
97517f4f22 | ||
|
|
abea7e63c2 | ||
|
|
f8202366d3 | ||
|
|
20ea328440 | ||
|
|
f61f442ec1 | ||
|
|
4a48e198e6 | ||
|
|
a0df30d226 | ||
|
|
b1a44d76ce | ||
|
|
9e4cad21de | ||
|
|
acc72df346 | ||
|
|
be73c01078 | ||
|
|
4fbff66c1a | ||
|
|
8f9afcaca5 | ||
|
|
b5498fade9 | ||
|
|
b97ed296b9 | ||
|
|
97f060d55f | ||
|
|
e10fca9356 | ||
|
|
8dea9309e6 | ||
|
|
3211406e36 | ||
|
|
3956aaea50 | ||
|
|
30040d810c | ||
|
|
613bfd1813 | ||
|
|
96497d4403 | ||
|
|
d99f6e5338 | ||
|
|
8b764b4d48 | ||
|
|
ef3551b8b1 | ||
|
|
79c92b5c76 | ||
|
|
e906fde1a4 | ||
|
|
c462946a2e | ||
|
|
dd983254a5 | ||
|
|
b947ecd7c0 | ||
|
|
ed592cdd50 | ||
|
|
8fc85a3046 | ||
|
|
6cea27487f | ||
|
|
3e3b8f98a7 | ||
|
|
4fd38991af | ||
|
|
6967501107 | ||
|
|
e2b759bb4b | ||
|
|
3c860c2979 | ||
|
|
4b8aefb79b | ||
|
|
8c246cf8c2 | ||
|
|
25c33a8302 | ||
|
|
d537d65d3d | ||
|
|
d37d3af1bc | ||
|
|
78a3cb9a44 | ||
|
|
a840a0d79d | ||
|
|
ca603290b7 | ||
|
|
72e1dd6ba9 | ||
|
|
0b3132e968 | ||
|
|
200044145c | ||
|
|
9fffd5bd72 | ||
|
|
266fef2132 | ||
|
|
5977fa5b41 | ||
|
|
686affd022 | ||
|
|
bfe7be5d10 | ||
|
|
e6a7bcc3f9 | ||
|
|
5bd8d07e27 | ||
|
|
60d94c5c6c | ||
|
|
da13bec790 | ||
|
|
2b0327297b | ||
|
|
981cad64f8 | ||
|
|
2a5f39177f | ||
|
|
ed49169522 | ||
|
|
3c5d757c59 | ||
|
|
ce081a9bfa | ||
|
|
b724e0d016 | ||
|
|
8bce118e1d | ||
|
|
ab95886ce2 | ||
|
|
6993bd0c8c | ||
|
|
8a6d1f2468 | ||
|
|
7fd849ae8e | ||
|
|
e6185238c2 | ||
|
|
1daec589d8 | ||
|
|
e374a73c4f | ||
|
|
e741699529 | ||
|
|
e6bab23e3a | ||
|
|
04cc587303 | ||
|
|
ed2d1519c4 | ||
|
|
093c192852 | ||
|
|
6330119c18 | ||
|
|
ae065b21ba | ||
|
|
0d5f4ab8c4 | ||
|
|
9d3b768881 | ||
|
|
ad9bd0fc30 | ||
|
|
f2dade2943 | ||
|
|
b186e28898 | ||
|
|
ffa9fecddb | ||
|
|
4d8124eee7 | ||
|
|
148e8c01ad | ||
|
|
4b3b604c9c | ||
|
|
d2a12bc1a9 | ||
|
|
9a20b05535 | ||
|
|
be3a5d5c7e | ||
|
|
007c2b9189 | ||
|
|
3be756e396 | ||
|
|
1ecb73d24c | ||
|
|
357def759e | ||
|
|
f6aae7dcc6 | ||
|
|
9aace7f283 | ||
|
|
16c9a6156a | ||
|
|
c1120934e7 | ||
|
|
5a12aa43c6 | ||
|
|
10b6d40148 | ||
|
|
0b5f1127f6 | ||
|
|
9c823d4f8f | ||
|
|
786206d717 | ||
|
|
e33ea188e9 | ||
|
|
0a71cd809c | ||
|
|
190ebfb95b | ||
|
|
8321fc4974 | ||
|
|
33aef0388f | ||
|
|
1725a9b837 | ||
|
|
eeb0e0f520 | ||
|
|
97d9ac6a24 | ||
|
|
c1c0e2cc33 | ||
|
|
9cde53260a | ||
|
|
049e657b1f | ||
|
|
f963acc930 | ||
|
|
79d020e0cd | ||
|
|
7ab65632bc | ||
|
|
1c0cf989c0 | ||
|
|
ed531e7cdc | ||
|
|
e6375d7ec2 | ||
|
|
6eccec32f3 | ||
|
|
2d019106c8 | ||
|
|
6c81376e65 | ||
|
|
59ddf3c4eb | ||
|
|
6536601b89 | ||
|
|
f7cbc907d5 | ||
|
|
acbbf28e2c | ||
|
|
704d70b3ba | ||
|
|
eb456a57ac | ||
|
|
93b99eb206 | ||
|
|
8e810d30e5 | ||
|
|
5754189e17 | ||
|
|
7b49be6823 | ||
|
|
021fa2add7 | ||
|
|
43b963bf5d | ||
|
|
ccc442611f | ||
|
|
5b781a415a | ||
|
|
1e94228dc0 | ||
|
|
fdaafa0299 | ||
|
|
fd404037ec | ||
|
|
fbd7b9a168 | ||
|
|
eeca60acbe | ||
|
|
9e867a92f1 | ||
|
|
74bb3e0ca9 | ||
|
|
7fae581556 | ||
|
|
0d945450d8 | ||
|
|
cfb23c520e | ||
|
|
990e124010 | ||
|
|
63e8d32d82 | ||
|
|
c5155d686d | ||
|
|
58c4d66acf | ||
|
|
9b215f47a4 | ||
|
|
832c13a16c | ||
|
|
d4d64e2176 | ||
|
|
ff54c48b3a | ||
|
|
2309c61c79 | ||
|
|
34a70c69b9 | ||
|
|
e46333c4fa | ||
|
|
90c2206c68 | ||
|
|
0d6adaa438 | ||
|
|
ef1cc10a11 | ||
|
|
eedc0c9cf6 | ||
|
|
f1b7bb234f | ||
|
|
1c1ffea2a9 | ||
|
|
77132164d3 | ||
|
|
3372a91b78 | ||
|
|
3971cc22da | ||
|
|
71fd7a5a50 | ||
|
|
18744cd400 | ||
|
|
3b94e1a364 | ||
|
|
6106632076 | ||
|
|
aa5e565741 | ||
|
|
d120fd9309 | ||
|
|
d435328984 |
No files matched your search
@@ -33,12 +33,12 @@ runs:
|
||||
}}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: ⚙️ Setup pnpm
|
||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
with:
|
||||
standalone: true
|
||||
|
||||
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
|
||||
|
||||
@@ -19,10 +19,7 @@
|
||||
},
|
||||
{
|
||||
"description": "Don't require approval for renovate",
|
||||
"matchPackageNames": [
|
||||
"ghcr.io/renovatebot/renovate",
|
||||
"renovatebot/github-action"
|
||||
],
|
||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate", "renovatebot/github-action"],
|
||||
"dependencyDashboardApproval": false
|
||||
},
|
||||
{
|
||||
@@ -42,9 +39,7 @@
|
||||
{
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["README.md"],
|
||||
"matchStrings": [
|
||||
"uses: renovatebot/github-action@(?<currentValue>[^\\s]+)"
|
||||
],
|
||||
"matchStrings": ["uses: renovatebot/github-action@(?<currentValue>[^\\s]+)"],
|
||||
"depNameTemplate": "renovatebot/github-action",
|
||||
"datasourceTemplate": "github-releases"
|
||||
},
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# This file is machine-generated by `gh actions-lock`.
|
||||
# Do not edit by hand; run `gh actions-lock` to update.
|
||||
# Docs: https://gh.io/actions-lockfile
|
||||
version: 'v0.0.3'
|
||||
workflows:
|
||||
'.github/workflows/build.yml':
|
||||
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
||||
- 'actions/checkout@v7.0.1'
|
||||
- 'actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce'
|
||||
- 'pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115'
|
||||
- 'wagoid/commitlint-github-action@v6.2.1'
|
||||
- 'zizmorcore/zizmor-action@v0.9.2'
|
||||
dependencies:
|
||||
'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
|
||||
ref: 'v6.1.0'
|
||||
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
||||
owner_id: 44036562
|
||||
repo_id: 215566462
|
||||
'actions/checkout@v7.0.1':
|
||||
ref: 'v7.0.1'
|
||||
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
|
||||
owner_id: 44036562
|
||||
repo_id: 197814629
|
||||
'actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce':
|
||||
ref: 'v7.2.0'
|
||||
commit: 'sha1-8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce'
|
||||
owner_id: 44036562
|
||||
repo_id: 189476904
|
||||
'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066':
|
||||
ref: 'v4.39.3'
|
||||
commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066'
|
||||
owner_id: 9919
|
||||
repo_id: 259445878
|
||||
'pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115':
|
||||
ref: 'v6.1.1'
|
||||
commit: 'sha1-73e46992e05b19abd31f2f3c20e0e7370d762115'
|
||||
owner_id: 21320719
|
||||
repo_id: 262289747
|
||||
'wagoid/commitlint-github-action@v6.2.1':
|
||||
ref: 'v6.2.1'
|
||||
commit: 'sha1-b948419dd99f3fd78a6548d48f94e3df7f6bf3ed'
|
||||
owner_id: 7467450
|
||||
repo_id: 212203144
|
||||
'zizmorcore/zizmor-action@v0.9.2':
|
||||
ref: 'v0.9.2'
|
||||
commit: 'sha1-1b4550e929643b8b26a62303c6bd64814271a4f1'
|
||||
owner_id: 210636713
|
||||
repo_id: 985558803
|
||||
uses:
|
||||
- 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066'
|
||||
+25
-19
@@ -10,7 +10,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RENOVATE_VERSION: 44.181.7 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
RENOVATE_VERSION: 45.16.0 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
@@ -18,12 +18,13 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
with:
|
||||
save-cache: true
|
||||
|
||||
@@ -33,14 +34,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
filter: blob:none # we don't need all blobs, only the full tree
|
||||
|
||||
- name: Lint commit messages
|
||||
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
|
||||
uses: wagoid/commitlint-github-action@v6.2.1
|
||||
continue-on-error: true
|
||||
|
||||
lint:
|
||||
@@ -51,12 +53,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
@@ -68,14 +71,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: Run zizmor
|
||||
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
|
||||
uses: zizmorcore/zizmor-action@v0.9.2
|
||||
with:
|
||||
version: 1.31.1
|
||||
version: 1.33.1
|
||||
|
||||
e2e:
|
||||
needs:
|
||||
@@ -91,12 +95,13 @@ jobs:
|
||||
- example/renovate-config.json
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
@@ -113,14 +118,14 @@ jobs:
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
- name: Renovate test
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
|
||||
- name: Renovate test with entrypoint
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
@@ -130,7 +135,7 @@ jobs:
|
||||
docker-user: root
|
||||
|
||||
- name: Renovate test with image and digest
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
@@ -141,13 +146,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:44.181.7@sha256:4f5a2621afd6629fda621e5c66221d1000f0ef3330ec14c828d7e8d357f03522
|
||||
image: ghcr.io/renovatebot/renovate:45.16.0@sha256:125f2e3b20e406e7c3393b56b48f6883ed3d4dc8a1bec50c43326a21da932769
|
||||
# github hosted runners are running as `1001:127` (ubuntu:docker)
|
||||
options: -u 1001:0 --group-add 1000 --group-add 12021 --group-add 127
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: Validate Renovate configuration
|
||||
@@ -173,7 +179,7 @@ jobs:
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1 # zizmor: ignore[artipacked] pushes the release branch
|
||||
with:
|
||||
fetch-depth: 0 # required for semantic release
|
||||
ref: 'release'
|
||||
@@ -196,7 +202,7 @@ jobs:
|
||||
GH_SHA: ${{ github.sha }}
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Push release branch
|
||||
run: git push origin release:release
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
name: auto-pr
|
||||
|
||||
on:
|
||||
pull_request_target: # zizmor: ignore[dangerous-triggers] -- No checkout, only reviewer assignment
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
review:
|
||||
if: github.event.action == 'opened' && !endsWith(github.event.pull_request.user.login, '[bot]')
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: hkusu/review-assign-action@5bee595fdb9765d4a0bd35724b6302fa15569158 # v1.4.0
|
||||
with:
|
||||
reviewers: ${{ vars.REVIEWERS }}
|
||||
max-num-of-reviewers: 2
|
||||
+2
-5
@@ -1,7 +1,4 @@
|
||||
{
|
||||
"*.{ts,tsx,js,jsx,json}": [
|
||||
"eslint --cache --fix",
|
||||
"prettier --cache --write"
|
||||
],
|
||||
"!*.{ts,tsx,js,jsx,json}": "prettier --cache --ignore-unknown --write"
|
||||
"*.{js,ts,cjs,mjs}": ["oxlint --fix", "oxfmt"],
|
||||
"!*.{js,ts,cjs,mjs}": "oxfmt --no-error-on-unmatched-pattern"
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
24.22.1
|
||||
24.23.0
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||
"singleQuote": true,
|
||||
"sortPackageJson": {},
|
||||
"ignorePatterns": ["LICENSE.md", "pnpm-lock.yaml"]
|
||||
}
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||
"plugins": ["eslint", "typescript", "import", "vitest", "promise", "oxc"],
|
||||
"jsPlugins": ["@containerbase/oxlint-plugin"],
|
||||
"options": {
|
||||
"typeAware": true,
|
||||
"reportUnusedDisableDirectives": "error"
|
||||
},
|
||||
"categories": {
|
||||
"correctness": "error"
|
||||
},
|
||||
"env": {
|
||||
"builtin": true,
|
||||
"node": true
|
||||
},
|
||||
"ignorePatterns": ["dist/", "coverage/", ".claude/worktrees/", ".pnpm-store"],
|
||||
"rules": {
|
||||
"containerbase/enforce-ts-extension": "error",
|
||||
"containerbase/no-undeclared-dependencies": "error",
|
||||
"containerbase/organize-imports": "error",
|
||||
"containerbase/test-root-describe": "error",
|
||||
|
||||
"import/no-cycle": "error",
|
||||
"import/no-duplicates": "error",
|
||||
"import/export": "error",
|
||||
|
||||
"curly": ["error", "all"],
|
||||
"no-var": "error",
|
||||
"prefer-const": "error",
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"no-empty": "error",
|
||||
"no-prototype-builtins": "error",
|
||||
"no-useless-escape": "error",
|
||||
"no-fallthrough": "error",
|
||||
"no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
|
||||
"no-unused-expressions": "error",
|
||||
"no-empty-function": "error",
|
||||
"no-array-constructor": "error",
|
||||
|
||||
"sort-imports": [
|
||||
"error",
|
||||
{
|
||||
"ignoreCase": false,
|
||||
"ignoreDeclarationSort": true,
|
||||
"ignoreMemberSort": false,
|
||||
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
|
||||
}
|
||||
],
|
||||
|
||||
"typescript/unbound-method": ["error", { "ignoreStatic": true }],
|
||||
"typescript/restrict-plus-operands": "error",
|
||||
"typescript/restrict-template-expressions": "error",
|
||||
"typescript/no-empty-object-type": "error",
|
||||
"typescript/ban-ts-comment": "error",
|
||||
"typescript/no-explicit-any": "error",
|
||||
"typescript/no-namespace": "error",
|
||||
"typescript/no-non-null-assertion": "error",
|
||||
"typescript/no-require-imports": "error",
|
||||
"typescript/no-unsafe-argument": "error",
|
||||
"typescript/no-unsafe-assignment": "error",
|
||||
"typescript/no-unsafe-call": "error",
|
||||
"typescript/no-unsafe-member-access": "error",
|
||||
"typescript/no-unsafe-return": "error",
|
||||
"typescript/no-unsafe-function-type": "error",
|
||||
"typescript/no-wrapper-object-types": "error",
|
||||
"typescript/only-throw-error": "error",
|
||||
"typescript/prefer-promise-reject-errors": "error",
|
||||
"typescript/require-await": "error",
|
||||
"typescript/triple-slash-reference": "error",
|
||||
"typescript/no-unsafe-enum-comparison": "error",
|
||||
"typescript/no-unnecessary-type-assertion": "error",
|
||||
"typescript/no-redundant-type-constituents": "error",
|
||||
"typescript/no-duplicate-type-constituents": "error",
|
||||
"typescript/no-base-to-string": "error",
|
||||
"typescript/no-misused-promises": "error",
|
||||
"typescript/no-floating-promises": "error",
|
||||
"typescript/await-thenable": "error",
|
||||
"typescript/no-for-in-array": "error",
|
||||
"typescript/no-implied-eval": "error",
|
||||
"typescript/no-array-delete": "error",
|
||||
"typescript/no-this-alias": "error",
|
||||
|
||||
"promise/always-return": "error",
|
||||
"promise/catch-or-return": "error",
|
||||
"promise/no-return-wrap": "error",
|
||||
"promise/param-names": "error",
|
||||
"promise/valid-params": "error",
|
||||
|
||||
"vitest/require-mock-type-parameters": "off",
|
||||
"vitest/require-to-throw-message": "off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["tools/**", "commitlint.config.js"],
|
||||
"rules": {
|
||||
"containerbase/no-undeclared-dependencies": ["error", { "allowDevDependencies": true }],
|
||||
"typescript/no-explicit-any": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
.git/
|
||||
.vscode
|
||||
build/
|
||||
dist/
|
||||
coverage/
|
||||
LICENSE.md
|
||||
modules/
|
||||
node_modules/
|
||||
|
||||
/.pnpm-store
|
||||
/pnpm-lock.yaml
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"plugins": ["prettier-plugin-packagejson"]
|
||||
}
|
||||
@@ -106,7 +106,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
docker-cmd-file: .github/renovate-entrypoint.sh
|
||||
docker-user: root
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
docker-volumes: |
|
||||
@@ -205,7 +205,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -222,7 +222,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
@@ -238,7 +238,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: ghcr.io/renovatebot/renovate@sha256:0f7ba2b70c5d1a7e2d95b0f6c3d5b4a1e2f6b6a1e2f6b6a1e2f6b6a1e2f6b6a1
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -250,7 +250,7 @@ The Renovate version to use.
|
||||
If omitted the action will use the [`default version`](./action.yml#L28) Docker tag.
|
||||
Check [the available tags on Docker Hub](https://hub.docker.com/r/renovate/renovate/tags).
|
||||
|
||||
This sample will use `ghcr.io/renovatebot/renovate:44.181.7` image.
|
||||
This sample will use `ghcr.io/renovatebot/renovate:45.16.0` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
@@ -261,9 +261,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: 44.181.7
|
||||
renovate-version: 45.16.0
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
@@ -278,7 +278,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: full
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -313,7 +313,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -326,7 +326,7 @@ If you want to use the Renovate Action on a GitHub Enterprise instance you have
|
||||
```yml
|
||||
....
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -373,7 +373,7 @@ jobs:
|
||||
uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
@@ -388,7 +388,7 @@ For example:
|
||||
|
||||
```yaml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
env:
|
||||
@@ -414,7 +414,7 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -437,6 +437,12 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||
};
|
||||
```
|
||||
|
||||
### User agent
|
||||
|
||||
By default, the Action sets [`RENOVATE_USER_AGENT`](https://docs.renovatebot.com/self-hosted-configuration/#useragent) to `Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)`, so that operators of registries can identify traffic coming from this Action.
|
||||
|
||||
To override it, set the `RENOVATE_USER_AGENT` environment variable on the Action step.
|
||||
|
||||
### Passing other environment variables
|
||||
|
||||
There are two ways to pass additional variables through to the Renovate container:
|
||||
@@ -455,7 +461,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.1.0
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -478,7 +484,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -549,11 +555,11 @@ jobs:
|
||||
sudo chown -R 12021:0 /tmp/renovate/
|
||||
ls -R $cache_dir
|
||||
|
||||
- uses: renovatebot/github-action@v46.3.9
|
||||
- uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: renovate.json5
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
renovate-version: 44.181.7
|
||||
renovate-version: 45.16.0
|
||||
env:
|
||||
# This enables the cache -- if this is set, it's not necessary to add it to renovate.json.
|
||||
RENOVATE_REPOSITORY_CACHE: ${{ github.event.inputs.repoCache || 'enabled' }}
|
||||
@@ -575,7 +581,7 @@ To enable debug logging, add the environment variable `LOG_LEVEL: 'debug'` to th
|
||||
|
||||
```yml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.9
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ inputs:
|
||||
description: |
|
||||
Renovate version to use.
|
||||
required: false
|
||||
default: '44' # renovate
|
||||
default: '45' # renovate
|
||||
renovate-image:
|
||||
description: |
|
||||
Renovate docker image name.
|
||||
|
||||
Vendored
+1
-1
@@ -44,7 +44,7 @@ ${r.count} ${r.noun} ${r.is} pending:
|
||||
${A.format(t)}
|
||||
`.trim())}};_I.exports=Ic});var Xr=d((IT,AC)=>{"use strict";E();var XI=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Wk}=J(),Ok=qt();$I()===void 0&&jI(new Ok);function jI(e){if(!e||typeof e.dispatch!="function")throw new Wk("Argument agent must implement Agent");Object.defineProperty(globalThis,XI,{value:e,writable:!0,enumerable:!1,configurable:!1})}function $I(){return globalThis[XI]}AC.exports={setGlobalDispatcher:jI,getGlobalDispatcher:$I}});var Un=d((uT,eC)=>{"use strict";E();eC.exports=class{#A;constructor(A){if(typeof A!="object"||A===null)throw new TypeError("handler must be an object");this.#A=A}onConnect(...A){return this.#A.onConnect?.(...A)}onError(...A){return this.#A.onError?.(...A)}onUpgrade(...A){return this.#A.onUpgrade?.(...A)}onResponseStarted(...A){return this.#A.onResponseStarted?.(...A)}onHeaders(...A){return this.#A.onHeaders?.(...A)}onData(...A){return this.#A.onData?.(...A)}onComplete(...A){return this.#A.onComplete?.(...A)}onBodySent(...A){return this.#A.onBodySent?.(...A)}}});var rC=d((fT,tC)=>{"use strict";E();var Pk=Qn();tC.exports=e=>{let A=e?.maxRedirections;return t=>function(s,n){let{maxRedirections:i=A,...o}=s;if(!i)return t(s,n);let a=new Pk(t,i,s,n);return t(o,a)}}});var nC=d((yT,sC)=>{"use strict";E();var Zk=yn();sC.exports=e=>A=>function(r,s){return A(r,new Zk({...r,retryOptions:{...e,...r.retryOptions}},{handler:s,dispatch:A}))}});var oC=d((DT,iC)=>{"use strict";E();var zk=T(),{InvalidArgumentError:_k,RequestAbortedError:Kk}=J(),Xk=Un(),Cc=class extends Xk{#A=1024*1024;#e=null;#t=!1;#s=!1;#n=0;#r=null;#i=null;constructor({maxSize:A},t){if(super(t),A!=null&&(!Number.isFinite(A)||A<1))throw new _k("maxSize must be a number greater than 0");this.#A=A??this.#A,this.#i=t}onConnect(A){this.#e=A,this.#i.onConnect(this.#o.bind(this))}#o(A){this.#s=!0,this.#r=A}onHeaders(A,t,r,s){let i=zk.parseHeaders(t)["content-length"];if(i!=null&&i>this.#A)throw new Kk(`Response size (${i}) larger than maxSize (${this.#A})`);return this.#s?!0:this.#i.onHeaders(A,t,r,s)}onError(A){this.#t||(A=this.#r??A,this.#i.onError(A))}onData(A){return this.#n=this.#n+A.length,this.#n>=this.#A&&(this.#t=!0,this.#s?this.#i.onError(this.#r):this.#i.onComplete([])),!0}onComplete(A){if(!this.#t){if(this.#s){this.#i.onError(this.reason);return}this.#i.onComplete(A)}}};function jk({maxSize:e}={maxSize:1024*1024}){return A=>function(r,s){let{dumpMaxSize:n=e}=r,i=new Cc({maxSize:n},s);return A(r,i)}}iC.exports=jk});var gC=d((kT,cC)=>{"use strict";E();var{isIP:$k}=h("node:net"),{lookup:AR}=h("node:dns"),eR=Un(),{InvalidArgumentError:jt,InformationalError:tR}=J(),aC=Math.pow(2,31)-1,hc=class{#A=0;#e=0;#t=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(A){this.#A=A.maxTTL,this.#e=A.maxItems,this.dualStack=A.dualStack,this.affinity=A.affinity,this.lookup=A.lookup??this.#s,this.pick=A.pick??this.#n}get full(){return this.#t.size===this.#e}runLookup(A,t,r){let s=this.#t.get(A.hostname);if(s==null&&this.full){r(null,A.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#A,maxItems:this.#e};if(s==null)this.lookup(A,n,(i,o)=>{if(i||o==null||o.length===0){r(i??new tR("No DNS entries found"));return}this.setRecords(A,o);let a=this.#t.get(A.hostname),c=this.pick(A,a,n.affinity),g;typeof c.port=="number"?g=`:${c.port}`:A.port!==""?g=`:${A.port}`:g="",r(null,`${A.protocol}//${c.family===6?`[${c.address}]`:c.address}${g}`)});else{let i=this.pick(A,s,n.affinity);if(i==null){this.#t.delete(A.hostname),this.runLookup(A,t,r);return}let o;typeof i.port=="number"?o=`:${i.port}`:A.port!==""?o=`:${A.port}`:o="",r(null,`${A.protocol}//${i.family===6?`[${i.address}]`:i.address}${o}`)}}#s(A,t,r){AR(A.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,n)=>{if(s)return r(s);let i=new Map;for(let o of n)i.set(`${o.address}:${o.family}`,o);r(null,i.values())})}#n(A,t,r){let s=null,{records:n,offset:i}=t,o;if(this.dualStack?(r==null&&(i==null||i===aC?(t.offset=0,r=4):(t.offset++,r=(t.offset&1)===1?6:4)),n[r]!=null&&n[r].ips.length>0?o=n[r]:o=n[r===4?6:4]):o=n[r],o==null||o.ips.length===0)return s;o.offset==null||o.offset===aC?o.offset=0:o.offset++;let a=o.offset%o.ips.length;return s=o.ips[a]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(o.ips.splice(a,1),this.pick(A,t,r)):s}setRecords(A,t){let r=Date.now(),s={records:{4:null,6:null}};for(let n of t){n.timestamp=r,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#A):n.ttl=this.#A;let i=s.records[n.family]??{ips:[]};i.ips.push(n),s.records[n.family]=i}this.#t.set(A.hostname,s)}getHandler(A,t){return new uc(this,A,t)}},uc=class extends eR{#A=null;#e=null;#t=null;#s=null;#n=null;constructor(A,{origin:t,handler:r,dispatch:s},n){super(r),this.#n=t,this.#s=r,this.#e={...n},this.#A=A,this.#t=s}onError(A){switch(A.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#A.dualStack){this.#A.runLookup(this.#n,this.#e,(t,r)=>{if(t)return this.#s.onError(t);let s={...thi
Line truncated
|
||||
${a}`,this.dataLineCount++;return}if(ui(A,s,hb)){wb(A,n)&&(this.setEventFieldSize("retry",A.length-n),t.retry=A.toString("utf8",n));return}if(ui(A,s,Cb)){yb(A,n)&&(this.setEventFieldSize("id",A.length-n),t.id=A.toString("utf8",n));return}ui(A,s,Ib)&&n<A.length&&(this.setEventFieldSize("event",A.length-n),t.event=A.toString("utf8",n))}setEventFieldSize(A,t){let r=this.eventSize-this.eventFieldSizes[A]+t;if(this.maxEventSize>0&&r>this.maxEventSize)throw di();this.eventSize=r,this.eventFieldSizes[A]=t}processEvent(A){A.retry&&cb(A.retry)&&(this.state.reconnectionTime=parseInt(A.retry,10)),A.id&&gb(A.id)&&(this.state.lastEventId=A.id),A.data!==void 0&&this.push({type:A.event||"message",options:{data:A.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let A=this.lineChunkIndex;this.chunks.splice(0,A),this.lineChunkIndex=0,this.chunkIndex-=A}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let A=[],t=0;for(let r=this.lineChunkIndex;r<=this.chunkIndex;r++){let s=this.chunks[r],n=r===this.lineChunkIndex?this.linePos:0,i=r===this.chunkIndex?this.pos:s.length,o=s.subarray(n,i);t+=o.length,A.push(o)}return Buffer.concat(A,t)}peekBufferedByte(A){let t=this.lineChunkIndex,r=this.linePos;for(;t<this.chunks.length;){let s=this.chunks[t],n=s.length-r;if(A<n)return s[r+A];A-=n,t++,r=0}}discardLeadingBytes(A){for(;A>0&&this.lineChunkIndex<this.chunks.length;){let r=this.chunks[this.lineChunkIndex].length-this.linePos;A<r?(this.linePos+=A,A=0):(A-=r,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let A=this.peekBufferedByte(0),t=this.peekBufferedByte(1),r=this.peekBufferedByte(2);return t===void 0?(A===Er[0]||(this.checkBOM=!1),!0):r===void 0?A===Er[0]&&t===Er[1]?!0:(this.checkBOM=!1,!1):(A===Er[0]&&t===Er[1]&&r===Er[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Hu.exports={EventSourceStream:og}});var Ku=d((Lx,_u)=>{"use strict";E();var{pipeline:pb}=h("node:stream"),{fetching:Db}=ts(),{makeRequest:mb}=er(),{webidl:fe}=gA(),{EventSourceStream:kb}=Vu(),{parseMIMEType:Rb}=hA(),{createFastMessageEvent:Fb}=or(),{isNetworkError:qu}=As(),{delay:Nb}=ig(),{kEnumerableProperty:It}=T(),{environmentSettingsObject:Wu}=DA(),{getGlobalDispatcher:Sb}=Xr(),Ou=!1,Pu=3e3,hs=0,Zu=1,us=2,bb="anonymous",Ub="use-credentials",Br=class e extends EventTarget{#A={open:null,error:null,message:null};#e=null;#t=!1;#s=hs;#n=null;#r=null;#i;#o;constructor(A,t={}){super(),fe.util.markAsUncloneable(this);let r="EventSource constructor";fe.argumentLengthCheck(arguments,1,r),Ou||(Ou=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),A=fe.converters.USVString(A,r,"url"),t=fe.converters.EventSourceInitDict(t,r,"eventSourceInitDict"),this.#i=t.dispatcher,this.#o={lastEventId:"",reconnectionTime:Pu};let s=Wu,n;try{n=new URL(A,s.settingsObject.baseUrl),this.#o.origin=n.origin}catch(a){throw new DOMException(a,"SyntaxError")}this.#e=n.href;let i=bb;t.withCredentials&&(i=Ub,this.#t=!0);let o={redirect:"follow",keepalive:!0,mode:"cors",credentials:i==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};o.client=Wu.settingsObject,o.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],o.cache="no-store",o.initiator="other",o.urlList=[new URL(this.#e)],this.#n=mb(o),this.#c()}get readyState(){return this.#s}get url(){return this.#e}get withCredentials(){return this.#t}#c(){if(this.#s===us)return;this.#s=hs;let A={request:this.#n,dispatcher:this.#i},t=r=>{qu(r)&&(this.dispatchEvent(new Event("error")),this.close()),this.#a()};A.processResponseEndOfBody=t,A.processResponse=r=>{if(qu(r))if(r.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#a();return}let s=r.headersList.get("content-type",!0),n=s!==null?Rb(s):"failure",i=n!=="
Line truncated
|
||||
`).filter(r=>r!=="");return A&&A.trimWhitespace===!1?t:t.map(r=>r.trim())}function dd(e){process.exitCode=hg.Failure,MU(e)}function MU(e,A={}){Cr("error",Ds(A),e instanceof Error?e.toString():e)}function ws(e,A={}){Cr("warning",Ds(A),e instanceof Error?e.toString():e)}function fd(e,A={}){Cr("notice",Ds(A),e instanceof Error?e.toString():e)}function wd(e){process.stdout.write(e+hd.EOL)}function LU(e){Ui("group",e)}function TU(){Ui("endgroup")}function yd(e,A){return UU(this,void 0,void 0,function*(){LU(e);let t;try{t=yield A()}finally{TU()}return t})}E();import pd from"node:path";var Fi=class{options={envRegex:/^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|NO_COLOR|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$/,configurationFile:{input:"configurationFile",env:"RENOVATE_CONFIG_FILE",optional:!0},token:{input:"token",env:"RENOVATE_TOKEN",optional:!1}};token;_environmentVariables;_configurationFile;constructor(){let A=JA("env-regex"),t=A?new RegExp(A):this.options.envRegex,r=ud("additional-env-list");this._environmentVariables=new Map(Object.entries(process.env).filter(([s])=>t.test(s)||r.includes(s)).filter(s=>s[1]!==void 0));for(let s of r)this._environmentVariables.has(s)||ws(`Environment variable '${s}' listed in 'additional-env-list' was not found in the parent process environment; it will not be passed to the renovate container.`);this.token=this.get(this.options.token.input,this.options.token.env,this.options.token.optional),this._configurationFile=this.get(this.options.configurationFile.input,this.options.configurationFile.env,this.options.configurationFile.optional)}configurationFile(){return this._configurationFile.value!==""?{key:this._configurationFile.key,value:pd.resolve(this._configurationFile.value)}:null}getDockerImage(){return JA("renovate-image")||null}getVersion(){return JA("renovate-version")||null}mountDockerSocket(){return JA("mount-docker-socket")==="true"}dockerSocketHostPath(){return JA("docker-socket-host-path")||"/var/run/docker.sock"}getDockerCmdFile(){let A=JA("docker-cmd-file");return A&&A!==""?pd.resolve(A):null}getDockerUser(){return JA("docker-user")||null}getDockerVolumeMounts(){return JA("docker-volumes").split(";").map(A=>A.trim()).filter(A=>!!A)}getDockerNetwork(){return JA("docker-network")}toEnvironmentVariables(){return[...this._environmentVariables].map(([A,t])=>({key:A,value:t}))}get(A,t,r){let s=JA(A),n=this._environmentVariables.get(t);if(s===""&&n===void 0&&!r)throw new Error([`'${A}' MUST be passed using its input or the '${t}'`,"environment variable"].join(" "));return this._environmentVariables.delete(t),s!==""?{key:t,value:s}:{key:t,value:n??""}}};E();E();var Ni=class e{static image="ghcr.io/renovatebot/renovate";static version="44";fullImageReference;constructor(A){let t=A.getDockerImage(),r=A.getVersion();if(t?.includes(":")){wd("Docker image looks like it contains a version, using that as the image itself"),this.fullImageReference=t;return}t||(ws(`No Docker image specified, using ${e.image}`),t=e.image),r||(ws(`No Docker version specified, using ${e.version}`),r=e.version),this.fullImageReference=`${t}:${r}`}image(){return this.fullImageReference}};import ug from"node:fs/promises";import dg from"node:path";var Si=class e{constructor(A){this.input=A;this.docker=new Ni(A)}input;static dockerGroupRegex=/^docker:x:(?<groupId>[1-9][0-9]*):/m;configFileMountDir="/github-action";docker;async runDockerContainerForVersion(){let A=`docker run --env FORCE_COLOR=3 --rm ${this.docker.image()} --version`,{exitCode:t,stdout:r}=await Cg(A);return t!==0&&new Error(`'docker run' failed with exit code ${t}.`),r.trim()}async runDockerContainer(){await this.validateArguments();let A=this.input.toEnvironmentVariables().map(c=>`--env ${c.key}`).concat([`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`]),t=this.input.configurationFile();if(t!==null){let c=dg.basename(t.value),g=dg.join(this.configFileMountDir,c);A.push(`--env ${t.key}=${g}`,`--volume ${t.value}:${g}`)}if(this.input.mountDockerSocket()){let c=this.input.dockerSocketHostPath();if(!(await ug.stat(c)).isSocket())throw new Error(`docker socket host path '${c}' MUST exist and be a socket`);A.push(`--volume ${c}:/var/run/docker.sock`,`--group-add ${await this.getDockerGroupId()}`)}let r=this.input.getDockerCmdFile(),s=null;if(r!==null){let g=`/${dg.basename(r)}`;A.push(`--volume ${r}:${g}`),s=g}let n=this.input.getDockerUser();n!==null&&A.push(`--user ${n}`);for(let c of this.input.getDockerVolumeMounts())A.push(`--volume ${c}`);let i=this.input.getDockerNetwork();i&&A.push(`--network ${i}`),A.push("--rm",this.docker.image()),s!==null&&A.push(s);let o=`docker run ${A.join(" ")}`,a=await Ig(o);a!==0&&new Error(`'docker run' failed with exit code ${a}.`)}async getDockerGroupId(){let A="/etc/group",t=await ug.readFile(A,{encoding:"utf-8"}),r=e.dockerGroupRegex.exec(t);if(r?.groups?.groupId===void 0)throw new Error(`Could not find group docker in ${A}`);return r.groups.groupId}async validateLine truncated
|
||||
`).filter(r=>r!=="");return A&&A.trimWhitespace===!1?t:t.map(r=>r.trim())}function dd(e){process.exitCode=hg.Failure,MU(e)}function MU(e,A={}){Cr("error",Ds(A),e instanceof Error?e.toString():e)}function ws(e,A={}){Cr("warning",Ds(A),e instanceof Error?e.toString():e)}function fd(e,A={}){Cr("notice",Ds(A),e instanceof Error?e.toString():e)}function wd(e){process.stdout.write(e+hd.EOL)}function LU(e){Ui("group",e)}function TU(){Ui("endgroup")}function yd(e,A){return UU(this,void 0,void 0,function*(){LU(e);let t;try{t=yield A()}finally{TU()}return t})}E();import pd from"node:path";var Fi=class{options={envRegex:/^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|NO_COLOR|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$/,configurationFile:{input:"configurationFile",env:"RENOVATE_CONFIG_FILE",optional:!0},token:{input:"token",env:"RENOVATE_TOKEN",optional:!1}};token;_environmentVariables;_configurationFile;constructor(){let A=JA("env-regex"),t=A?new RegExp(A):this.options.envRegex,r=ud("additional-env-list");this._environmentVariables=new Map(Object.entries(process.env).filter(([s])=>t.test(s)||r.includes(s)).filter(s=>s[1]!==void 0));for(let s of r)this._environmentVariables.has(s)||ws(`Environment variable '${s}' listed in 'additional-env-list' was not found in the parent process environment; it will not be passed to the renovate container.`);this.token=this.get(this.options.token.input,this.options.token.env,this.options.token.optional),this._configurationFile=this.get(this.options.configurationFile.input,this.options.configurationFile.env,this.options.configurationFile.optional)}configurationFile(){return this._configurationFile.value!==""?{key:this._configurationFile.key,value:pd.resolve(this._configurationFile.value)}:null}getDockerImage(){return JA("renovate-image")||null}getVersion(){return JA("renovate-version")||null}mountDockerSocket(){return JA("mount-docker-socket")==="true"}dockerSocketHostPath(){return JA("docker-socket-host-path")||"/var/run/docker.sock"}getDockerCmdFile(){let A=JA("docker-cmd-file");return A&&A!==""?pd.resolve(A):null}getDockerUser(){return JA("docker-user")||null}getDockerVolumeMounts(){return JA("docker-volumes").split(";").map(A=>A.trim()).filter(A=>!!A)}getDockerNetwork(){return JA("docker-network")}toEnvironmentVariables(){return[...this._environmentVariables].map(([A,t])=>({key:A,value:t}))}get(A,t,r){let s=JA(A),n=this._environmentVariables.get(t);if(s===""&&n===void 0&&!r)throw new Error([`'${A}' MUST be passed using its input or the '${t}'`,"environment variable"].join(" "));return this._environmentVariables.delete(t),s!==""?{key:t,value:s}:{key:t,value:n??""}}};E();import ug from"node:fs/promises";import dg from"node:path";E();var Ni=class e{static image="ghcr.io/renovatebot/renovate";static version="45";fullImageReference;constructor(A){let t=A.getDockerImage(),r=A.getVersion();if(t?.includes(":")){wd("Docker image looks like it contains a version, using that as the image itself"),this.fullImageReference=t;return}t||(ws(`No Docker image specified, using ${e.image}`),t=e.image),r||(ws(`No Docker version specified, using ${e.version}`),r=e.version),this.fullImageReference=`${t}:${r}`}image(){return this.fullImageReference}};var Si=class e{constructor(A){this.input=A;this.docker=new Ni(A)}input;static dockerGroupRegex=/^docker:x:(?<groupId>[1-9][0-9]*):/m;static userAgentKey="RENOVATE_USER_AGENT";static defaultUserAgent="Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)";configFileMountDir="/github-action";docker;async runDockerContainerForVersion(){let A=`docker run --env FORCE_COLOR=3 --rm ${this.docker.image()} --version`,{exitCode:t,stdout:r}=await Cg(A);if(t!==0)throw new Error(`'docker run' failed with exit code ${t}.`);return r.trim()}async runDockerContainer(){await this.validateArguments();let A=this.input.toEnvironmentVariables().map(c=>`--env ${c.key}`).concat([`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`]);this.input.toEnvironmentVariables().some(c=>c.key===e.userAgentKey)||A.push(`--env "${e.userAgentKey}=${e.defaultUserAgent}"`);let t=this.input.configurationFile();if(t!==null){let c=dg.basename(t.value),g=dg.join(this.configFileMountDir,c);A.push(`--env ${t.key}=${g}`,`--volume ${t.value}:${g}`)}if(this.input.mountDockerSocket()){let c=this.input.dockerSocketHostPath();if(!(await ug.stat(c)).isSocket())throw new Error(`docker socket host path '${c}' MUST exist and be a socket`);A.push(`--volume ${c}:/var/run/docker.sock`,`--group-add ${await this.getDockerGroupId()}`)}let r=this.input.getDockerCmdFile(),s=null;if(r!==null){let g=`/${dg.basename(r)}`;A.push(`--volume ${r}:${g}`),s=g}let n=this.input.getDockerUser();n!==null&&A.push(`--user ${n}`);for(let c of this.input.getDockerVolumeMounts())A.push(`--volume ${c}`);let i=this.input.getDockerNetwork();i&&A.push(`--network ${i}`),A.push("--rm",this.docker.image()),s!==null&&A.push(s);let o=`docker run ${A.join(" ")}`,a=await Ig(o);if(a!==0)throw neLine truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../tools/cjs-shim.ts", "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js", "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/symbols.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/errors.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/constants.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/tree.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/util.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/diagnostics.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/request.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/util/timers.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/core/connect.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/llhttp/utils.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/llhttp/constants.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/constants.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/global.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/util.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/file.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/web/fetch/body.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/client.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/pool.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/agent.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/handler/retry-handler.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/readable.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/util.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/api-request.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/abort-signal.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/api-stream.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/api-pipeline.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/api-upgrade.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/api-connect.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/api/index.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/mock-errors.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/mock-utils.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/mock-client.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/mock-pool.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/pluralizer.js", "../node_modules/.pnpm/undici@6.29.1/node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modulLine truncated
|
||||
"sourcesContent": ["// https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport url from 'node:url';\n\nglobalThis.require = createRequire(import.meta.url);\nglobalThis.__filename = url.fileURLToPath(import.meta.url);\nglobalThis.__dirname = path.dirname(__filename);\n", "'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socketLine truncated
|
||||
"mappings": "44BACA,OAAS,iBAAAA,OAAqB,cAC9B,OAAOC,OAAU,YACjB,OAAOC,OAAS,WAHhB,IAAAC,EAAAC,GAAA,kBAKA,WAAW,QAAUJ,GAAc,YAAY,GAAG,EAClD,WAAW,WAAaE,GAAI,cAAc,YAAY,GAAG,EACzD,WAAW,UAAYD,GAAK,QAAQ,UAAU,ICP9C,IAAAI,GAAAC,EAAAC,IAAA,cAAAC,IAEA,IAAIC,GAAM,EAAQ,KAAK,EACnBC,GAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,GAAS,EAAQ,QAAQ,EACzBC,GAAS,EAAQ,QAAQ,EACzBC,GAAO,EAAQ,MAAM,EAGzBR,GAAQ,aAAeS,GACvBT,GAAQ,cAAgBU,GACxBV,GAAQ,cAAgBW,GACxBX,GAAQ,eAAiBY,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,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,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,GAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBlC,GAAQ,MAAQkC,KCvQhB,IAAAqB,GAAACLine truncated
|
||||
"names": ["createRequire", "path", "url", "init_cjs_shim", "__esmMin", "require_tunnel", "__commonJSMin", "exports", "init_cjs_shim", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_symbols", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_errors", "__commonJSMin", "exports", "module", "init_cjs_shim", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "init_cjs_shim", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "init_cjs_shim", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "init_cjs_shim", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "init_cjs_shim", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "init_cjs_shim", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPatLine truncated
|
||||
"sourcesContent": ["// https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport url from 'node:url';\n\nglobalThis.require = createRequire(import.meta.url);\nglobalThis.__filename = url.fileURLToPath(import.meta.url);\nglobalThis.__dirname = path.dirname(__filename);\n", "'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socketLine truncated
|
||||
"mappings": "44BACA,OAAS,iBAAAA,OAAqB,cAC9B,OAAOC,OAAU,YACjB,OAAOC,OAAS,WAHhB,IAAAC,EAAAC,GAAA,kBAKA,WAAW,QAAUJ,GAAc,YAAY,GAAG,EAClD,WAAW,WAAaE,GAAI,cAAc,YAAY,GAAG,EACzD,WAAW,UAAYD,GAAK,QAAQ,UAAU,ICP9C,IAAAI,GAAAC,EAAAC,IAAA,cAAAC,IAEA,IAAIC,GAAM,EAAQ,KAAK,EACnBC,GAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,GAAS,EAAQ,QAAQ,EACzBC,GAAS,EAAQ,QAAQ,EACzBC,GAAO,EAAQ,MAAM,EAGzBR,GAAQ,aAAeS,GACvBT,GAAQ,cAAgBU,GACxBV,GAAQ,cAAgBW,GACxBX,GAAQ,eAAiBY,GAGzB,SAASH,GAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,GAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,GAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,GAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc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", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_symbols", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_errors", "__commonJSMin", "exports", "module", "init_cjs_shim", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "init_cjs_shim", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "init_cjs_shim", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "init_cjs_shim", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "init_cjs_shim", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "init_cjs_shim", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPatLine truncated
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||
import globals from 'globals';
|
||||
import js from '@eslint/js';
|
||||
import json from 'eslint-plugin-json';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: [
|
||||
'**/.git/',
|
||||
'**/.vscode',
|
||||
'**/build/',
|
||||
'**/dist/',
|
||||
'**/coverage/',
|
||||
'**/LICENSE.md',
|
||||
'**/modules/',
|
||||
'**/node_modules/',
|
||||
'!**/.*',
|
||||
],
|
||||
},
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommendedTypeChecked.map((config) => ({
|
||||
...config,
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
})),
|
||||
...tseslint.configs.stylisticTypeChecked.map((config) => ({
|
||||
...config,
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
})),
|
||||
{
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
|
||||
linterOptions: {
|
||||
reportUnusedDisableDirectives: true,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
'sort-imports': 'error',
|
||||
},
|
||||
},
|
||||
json.configs.recommended,
|
||||
{
|
||||
files: ['**/tsconfig.json', '**/tsconfig.*.json'],
|
||||
rules: {
|
||||
'json/*': ['error', { allowComments: true }],
|
||||
},
|
||||
},
|
||||
eslintConfigPrettier,
|
||||
);
|
||||
@@ -10,14 +10,7 @@ module.exports = {
|
||||
packageRules: [
|
||||
{
|
||||
description: 'lockFileMaintenance',
|
||||
matchUpdateTypes: [
|
||||
'pin',
|
||||
'digest',
|
||||
'patch',
|
||||
'minor',
|
||||
'major',
|
||||
'lockFileMaintenance',
|
||||
],
|
||||
matchUpdateTypes: ['pin', 'digest', 'patch', 'minor', 'major', 'lockFileMaintenance'],
|
||||
dependencyDashboardApproval: false,
|
||||
minimumReleaseAge: null,
|
||||
},
|
||||
|
||||
@@ -14,14 +14,7 @@
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "lockFileMaintenance",
|
||||
"matchUpdateTypes": [
|
||||
"pin",
|
||||
"digest",
|
||||
"patch",
|
||||
"minor",
|
||||
"major",
|
||||
"lockFileMaintenance"
|
||||
],
|
||||
"matchUpdateTypes": ["pin", "digest", "patch", "minor", "major", "lockFileMaintenance"],
|
||||
"dependencyDashboardApproval": false,
|
||||
"minimumReleaseAge": "1 day"
|
||||
}
|
||||
|
||||
+25
-32
@@ -1,33 +1,31 @@
|
||||
{
|
||||
"name": "github-action",
|
||||
"version": "46.3.10",
|
||||
"version": "48.0.1",
|
||||
"private": true,
|
||||
"description": "GitHub Action to run Renovate self-hosted.",
|
||||
"homepage": "https://github.com/renovatebot/github-action#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/renovatebot/github-action/issues"
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Jeroen de Bruijn",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/renovatebot/github-action.git"
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Jeroen de Bruijn",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"build": "run-s clean compile",
|
||||
"clean": "rimraf dist/",
|
||||
"compile": "node tools/compile.js",
|
||||
"lint": "run-s lint-es prettier",
|
||||
"lint:fix": "run-s lint-es:fix prettier-fix",
|
||||
"lint-es": "eslint .",
|
||||
"lint-es:file": "eslint",
|
||||
"lint-es:file:fix": "eslint --fix",
|
||||
"lint-es:fix": "eslint --fix .",
|
||||
"lint": "run-s lint:*",
|
||||
"lint:oxlint": "oxlint",
|
||||
"lint:oxfmt": "oxfmt --check",
|
||||
"fix": "run-s fix:*",
|
||||
"fix:oxlint": "oxlint --fix",
|
||||
"fix:oxfmt": "oxfmt",
|
||||
"prepare": "husky",
|
||||
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
|
||||
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
|
||||
"release": "run-s clean build semantic-release",
|
||||
"semantic-release": "semantic-release",
|
||||
"start": "run-s build && node dist"
|
||||
@@ -37,35 +35,30 @@
|
||||
"@actions/exec": "3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "21.2.4",
|
||||
"@commitlint/config-conventional": "21.2.4",
|
||||
"@eslint/js": "9.39.5",
|
||||
"@commitlint/cli": "21.3.0",
|
||||
"@commitlint/config-conventional": "21.3.0",
|
||||
"@containerbase/oxlint-plugin": "1.1.0",
|
||||
"@semantic-release/git": "11.0.1",
|
||||
"@semantic-release/github": "12.0.10",
|
||||
"@semantic-release/github": "12.0.11",
|
||||
"@semantic-release/npm": "13.2.0",
|
||||
"@tsconfig/node24": "24.0.5",
|
||||
"@tsconfig/strictest": "2.0.8",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"@types/node": "24.19.2",
|
||||
"@tsconfig/node24": "24.0.6",
|
||||
"@tsconfig/strictest": "2.0.9",
|
||||
"@types/node": "24.19.4",
|
||||
"conventional-changelog-conventionalcommits": "9.3.1",
|
||||
"esbuild": "0.28.2",
|
||||
"eslint": "9.39.5",
|
||||
"eslint-config-prettier": "10.1.8",
|
||||
"eslint-plugin-json": "5.0.0",
|
||||
"globals": "17.13.0",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "17.6.0",
|
||||
"npm-run-all2": "9.0.3",
|
||||
"prettier": "3.9.10",
|
||||
"prettier-plugin-packagejson": "3.0.2",
|
||||
"rimraf": "6.1.3",
|
||||
"lint-staged": "17.6.3",
|
||||
"npm-run-all2": "9.1.0",
|
||||
"oxfmt": "0.80.0",
|
||||
"oxlint": "1.95.0",
|
||||
"oxlint-tsgolint": "7.0.2009",
|
||||
"rimraf": "6.1.4",
|
||||
"semantic-release": "25.0.9",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.71.2"
|
||||
"typescript": "5.9.3"
|
||||
},
|
||||
"packageManager": "pnpm@10.34.7",
|
||||
"engines": {
|
||||
"node": ">=24.11.0",
|
||||
"pnpm": "^10.0.0"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.34.9"
|
||||
}
|
||||
Generated
+741
-1071
File diff suppressed because it is too large.
Load diff
+2
-4
@@ -3,7 +3,7 @@ import type { Input } from './input';
|
||||
|
||||
export class Docker {
|
||||
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
||||
private static readonly version = '44'; // renovate
|
||||
private static readonly version = '45'; // renovate
|
||||
|
||||
private readonly fullImageReference: string;
|
||||
|
||||
@@ -12,9 +12,7 @@ export class Docker {
|
||||
let version = input.getVersion();
|
||||
|
||||
if (image?.includes(':')) {
|
||||
info(
|
||||
`Docker image looks like it contains a version, using that as the image itself`,
|
||||
);
|
||||
info(`Docker image looks like it contains a version, using that as the image itself`);
|
||||
this.fullImageReference = image;
|
||||
return;
|
||||
}
|
||||
|
||||
+7
-16
@@ -1,5 +1,5 @@
|
||||
import { getInput, getMultilineInput, warning } from '@actions/core';
|
||||
import path from 'node:path';
|
||||
import { getInput, getMultilineInput, warning } from '@actions/core';
|
||||
|
||||
export interface EnvironmentVariable {
|
||||
key: string;
|
||||
@@ -28,15 +28,11 @@ export class Input {
|
||||
|
||||
constructor() {
|
||||
const envRegexInput = getInput('env-regex');
|
||||
const envRegex = envRegexInput
|
||||
? new RegExp(envRegexInput)
|
||||
: this.options.envRegex;
|
||||
const envRegex = envRegexInput ? new RegExp(envRegexInput) : this.options.envRegex;
|
||||
const additionalEnvVarNames = getMultilineInput('additional-env-list');
|
||||
this._environmentVariables = new Map(
|
||||
Object.entries(process.env)
|
||||
.filter(
|
||||
([key]) => envRegex.test(key) || additionalEnvVarNames.includes(key),
|
||||
)
|
||||
.filter(([key]) => envRegex.test(key) || additionalEnvVarNames.includes(key))
|
||||
.filter((pair): pair is [string, string] => pair[1] !== undefined),
|
||||
);
|
||||
for (const name of additionalEnvVarNames) {
|
||||
@@ -120,20 +116,15 @@ export class Input {
|
||||
}));
|
||||
}
|
||||
|
||||
private get(
|
||||
input: string,
|
||||
env: string,
|
||||
optional: boolean,
|
||||
): EnvironmentVariable {
|
||||
private get(input: string, env: string, optional: boolean): EnvironmentVariable {
|
||||
const fromInput = getInput(input);
|
||||
const fromEnv = this._environmentVariables.get(env);
|
||||
|
||||
if (fromInput === '' && fromEnv === undefined && !optional) {
|
||||
throw new Error(
|
||||
[
|
||||
`'${input}' MUST be passed using its input or the '${env}'`,
|
||||
'environment variable',
|
||||
].join(' '),
|
||||
[`'${input}' MUST be passed using its input or the '${env}'`, 'environment variable'].join(
|
||||
' ',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
+15
-17
@@ -1,11 +1,14 @@
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { exec, getExecOutput } from '@actions/exec';
|
||||
import { Docker } from './docker';
|
||||
import { Input } from './input';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
|
||||
export class Renovate {
|
||||
static dockerGroupRegex = /^docker:x:(?<groupId>[1-9][0-9]*):/m;
|
||||
private static readonly userAgentKey = 'RENOVATE_USER_AGENT';
|
||||
private static readonly defaultUserAgent =
|
||||
'Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)';
|
||||
private configFileMountDir = '/github-action';
|
||||
|
||||
private docker: Docker;
|
||||
@@ -19,7 +22,7 @@ export class Renovate {
|
||||
|
||||
const { exitCode, stdout } = await getExecOutput(command);
|
||||
if (exitCode !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
throw new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
}
|
||||
|
||||
return stdout.trim();
|
||||
@@ -31,9 +34,11 @@ export class Renovate {
|
||||
const dockerArguments = this.input
|
||||
.toEnvironmentVariables()
|
||||
.map((e) => `--env ${e.key}`)
|
||||
.concat([
|
||||
`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`,
|
||||
]);
|
||||
.concat([`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`]);
|
||||
|
||||
if (!this.input.toEnvironmentVariables().some((e) => e.key === Renovate.userAgentKey)) {
|
||||
dockerArguments.push(`--env "${Renovate.userAgentKey}=${Renovate.defaultUserAgent}"`);
|
||||
}
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (configurationFile !== null) {
|
||||
@@ -49,9 +54,7 @@ export class Renovate {
|
||||
const sockPath = this.input.dockerSocketHostPath();
|
||||
const stat = await fs.stat(sockPath);
|
||||
if (!stat.isSocket()) {
|
||||
throw new Error(
|
||||
`docker socket host path '${sockPath}' MUST exist and be a socket`,
|
||||
);
|
||||
throw new Error(`docker socket host path '${sockPath}' MUST exist and be a socket`);
|
||||
}
|
||||
|
||||
dockerArguments.push(
|
||||
@@ -93,7 +96,7 @@ export class Renovate {
|
||||
|
||||
const code = await exec(command);
|
||||
if (code !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${code}.`);
|
||||
throw new Error(`'docker run' failed with exit code ${code}.`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,13 +132,8 @@ export class Renovate {
|
||||
}
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (
|
||||
configurationFile !== null &&
|
||||
!(await fs.stat(configurationFile.value)).isFile()
|
||||
) {
|
||||
throw new Error(
|
||||
`configuration file '${configurationFile.value}' MUST be an existing file`,
|
||||
);
|
||||
if (configurationFile !== null && !(await fs.stat(configurationFile.value)).isFile()) {
|
||||
throw new Error(`configuration file '${configurationFile.value}' MUST be an existing file`);
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { build } from 'esbuild';
|
||||
import { env } from 'node:process';
|
||||
import { build } from 'esbuild';
|
||||
|
||||
await build({
|
||||
entryPoints: ['./src/index.ts'],
|
||||
|
||||
+1
-4
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node24/tsconfig.json"
|
||||
],
|
||||
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node24/tsconfig.json"],
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
|
||||
+1
-4
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node24/tsconfig.json"
|
||||
],
|
||||
"extends": ["@tsconfig/strictest/tsconfig.json", "@tsconfig/node24/tsconfig.json"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
||||
Reference in new issue
Block a user