Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db473fddc0 | ||
|
|
d3b713ade6 | ||
|
|
e042adb334 | ||
|
|
9d3beef651 | ||
|
|
877f50d98c | ||
|
|
b7ab74091b | ||
|
|
c074443f1a |
4
.github/workflows/prober.yml
vendored
4
.github/workflows/prober.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
|
||||
- name: Report attestation prober success
|
||||
if: ${{ success() }}
|
||||
uses: masci/datadog@a5d283e78e33a688ed08a96ba64440505e645a8c # v1.7.1
|
||||
uses: masci/datadog@6889e9d060f5368eeee51f8a3f06a52f65d04da3 # v1.9.1
|
||||
with:
|
||||
api-key: "${{ secrets.DATADOG_API_KEY }}"
|
||||
service-checks: |
|
||||
@@ -66,7 +66,7 @@ jobs:
|
||||
|
||||
- name: Report attestation prober failure
|
||||
if: ${{ failure() }}
|
||||
uses: masci/datadog@a5d283e78e33a688ed08a96ba64440505e645a8c # v1.7.1
|
||||
uses: masci/datadog@6889e9d060f5368eeee51f8a3f06a52f65d04da3 # v1.9.1
|
||||
with:
|
||||
api-key: "${{ secrets.DATADOG_API_KEY }}"
|
||||
service-checks: |
|
||||
|
||||
@@ -64,7 +64,7 @@ runs:
|
||||
steps:
|
||||
- uses: actions/attest-build-provenance/predicate@1176ef556905f349f669722abf30bce1a6e16e01 # predicate@1.1.5
|
||||
id: generate-build-provenance-predicate
|
||||
- uses: actions/attest@v2.2.1
|
||||
- uses: actions/attest@afd638254319277bb3d7f0a234478733e2e46a73 # v2.3.0
|
||||
id: attest
|
||||
with:
|
||||
subject-path: ${{ inputs.subject-path }}
|
||||
|
||||
30
dist/index.js
generated
vendored
30
dist/index.js
generated
vendored
@@ -15000,8 +15000,13 @@ class Agent extends http.Agent {
|
||||
.then((socket) => {
|
||||
this.decrementSockets(name, fakeSocket);
|
||||
if (socket instanceof http.Agent) {
|
||||
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
|
||||
return socket.addRequest(req, connectOpts);
|
||||
try {
|
||||
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
|
||||
return socket.addRequest(req, connectOpts);
|
||||
}
|
||||
catch (err) {
|
||||
return cb(err);
|
||||
}
|
||||
}
|
||||
this[INTERNAL].currentSocket = socket;
|
||||
// @ts-expect-error `createSocket()` isn't defined in `@types/node`
|
||||
@@ -20956,6 +20961,17 @@ const agent_base_1 = __nccwpck_require__(98894);
|
||||
const url_1 = __nccwpck_require__(87016);
|
||||
const parse_proxy_response_1 = __nccwpck_require__(37943);
|
||||
const debug = (0, debug_1.default)('https-proxy-agent');
|
||||
const setServernameFromNonIpHost = (options) => {
|
||||
if (options.servername === undefined &&
|
||||
options.host &&
|
||||
!net.isIP(options.host)) {
|
||||
return {
|
||||
...options,
|
||||
servername: options.host,
|
||||
};
|
||||
}
|
||||
return options;
|
||||
};
|
||||
/**
|
||||
* The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to
|
||||
* the specified "HTTP(s) proxy server" in order to proxy HTTPS requests.
|
||||
@@ -21003,11 +21019,7 @@ class HttpsProxyAgent extends agent_base_1.Agent {
|
||||
let socket;
|
||||
if (proxy.protocol === 'https:') {
|
||||
debug('Creating `tls.Socket`: %o', this.connectOpts);
|
||||
const servername = this.connectOpts.servername || this.connectOpts.host;
|
||||
socket = tls.connect({
|
||||
...this.connectOpts,
|
||||
servername,
|
||||
});
|
||||
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
|
||||
}
|
||||
else {
|
||||
debug('Creating `net.Socket`: %o', this.connectOpts);
|
||||
@@ -21043,11 +21055,9 @@ class HttpsProxyAgent extends agent_base_1.Agent {
|
||||
// The proxy is connecting to a TLS server, so upgrade
|
||||
// this socket connection to a TLS connection.
|
||||
debug('Upgrading socket connection to TLS');
|
||||
const servername = opts.servername || opts.host;
|
||||
return tls.connect({
|
||||
...omit(opts, 'host', 'path', 'port'),
|
||||
...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'),
|
||||
socket,
|
||||
servername,
|
||||
});
|
||||
}
|
||||
return socket;
|
||||
|
||||
764
package-lock.json
generated
764
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@@ -74,20 +74,20 @@
|
||||
"@actions/core": "^1.11.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.21.0",
|
||||
"@eslint/js": "^9.23.0",
|
||||
"@types/jest": "^29.5.14",
|
||||
"@types/node": "^22.13.5",
|
||||
"@types/node": "^22.13.14",
|
||||
"@vercel/ncc": "^0.38.3",
|
||||
"eslint": "^9.21.0",
|
||||
"eslint": "^9.23.0",
|
||||
"eslint-plugin-import": "^2.31.0",
|
||||
"eslint-plugin-jest": "^28.11.0",
|
||||
"jest": "^29.7.0",
|
||||
"jose": "^5.9.6",
|
||||
"markdownlint-cli": "^0.44.0",
|
||||
"nock": "^14.0.1",
|
||||
"prettier": "^3.5.2",
|
||||
"ts-jest": "^29.2.6",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript-eslint": "^8.24.1"
|
||||
"nock": "^14.0.2",
|
||||
"prettier": "^3.5.3",
|
||||
"ts-jest": "^29.3.0",
|
||||
"typescript": "^5.8.2",
|
||||
"typescript-eslint": "^8.28.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user