4 Commits
v7 ... master

Author SHA1 Message Date
Dawid Dziurla
e1da0f2cc9 node_modules: update (#248)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
2026-01-09 14:32:48 +01:00
dependabot[bot]
a9ca158f0a build(deps): bump @actions/core from 2.0.1 to 2.0.2 (#247)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 2.0.1 to 2.0.2.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 2.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 14:31:33 +01:00
Dawid Dziurla
acb47d474a Change action-send-mail version reference
Updated action-send-mail reference in README.
2025-12-25 11:16:10 +01:00
Dawid Dziurla
ffc93b5192 Update action-send-mail version to v7 2025-12-25 11:03:15 +01:00
9 changed files with 34 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ Some features:
```yaml ```yaml
- name: Send mail - name: Send mail
uses: dawidd6/action-send-mail@v6 uses: dawidd6/action-send-mail@<REF>
env: env:
# Optional http proxy: # Optional http proxy:
HTTP_PROXY: http://proxy.example.test:3128 HTTP_PROXY: http://proxy.example.test:3128

14
node_modules/.package-lock.json generated vendored
View File

@@ -4,13 +4,13 @@
"requires": true, "requires": true,
"packages": { "packages": {
"node_modules/@actions/core": { "node_modules/@actions/core": {
"version": "2.0.1", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.1.tgz", "resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.2.tgz",
"integrity": "sha512-oBfqT3GwkvLlo1fjvhQLQxuwZCGTarTE5OuZ2Wg10hvhBj7LRIlF611WT4aZS6fDhO5ZKlY7lCAZTlpmyaHaeg==", "integrity": "sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/exec": "^2.0.0", "@actions/exec": "^2.0.0",
"@actions/http-client": "^3.0.0" "@actions/http-client": "^3.0.1"
} }
}, },
"node_modules/@actions/core/node_modules/@actions/exec": { "node_modules/@actions/core/node_modules/@actions/exec": {
@@ -68,9 +68,9 @@
} }
}, },
"node_modules/@actions/http-client": { "node_modules/@actions/http-client": {
"version": "3.0.0", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.1.tgz",
"integrity": "sha512-1s3tXAfVMSz9a4ZEBkXXRQD4QhY3+GAsWSbaYpeknPOKEeyRiU3lH+bHiLMZdo2x/fIeQ/hscL1wCkDLVM2DZQ==", "integrity": "sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"tunnel": "^0.0.6", "tunnel": "^0.0.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@actions/core", "name": "@actions/core",
"version": "2.0.1", "version": "2.0.2",
"description": "Actions core lib", "description": "Actions core lib",
"keywords": [ "keywords": [
"github", "github",
@@ -37,7 +37,7 @@
}, },
"dependencies": { "dependencies": {
"@actions/exec": "^2.0.0", "@actions/exec": "^2.0.0",
"@actions/http-client": "^3.0.0" "@actions/http-client": "^3.0.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.18.112" "@types/node": "^16.18.112"

View File

@@ -137,6 +137,7 @@ export declare class HttpClient {
private _getExistingOrDefaultContentTypeHeader; private _getExistingOrDefaultContentTypeHeader;
private _getAgent; private _getAgent;
private _getProxyAgentDispatcher; private _getProxyAgentDispatcher;
private _getUserAgentWithOrchestrationId;
private _performExponentialBackoff; private _performExponentialBackoff;
private _processResponse; private _processResponse;
} }

View File

@@ -168,7 +168,7 @@ class HttpClient {
this._maxRetries = 1; this._maxRetries = 1;
this._keepAlive = false; this._keepAlive = false;
this._disposed = false; this._disposed = false;
this.userAgent = userAgent; this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
this.handlers = handlers || []; this.handlers = handlers || [];
this.requestOptions = requestOptions; this.requestOptions = requestOptions;
if (requestOptions) { if (requestOptions) {
@@ -648,6 +648,17 @@ class HttpClient {
} }
return proxyAgent; return proxyAgent;
} }
_getUserAgentWithOrchestrationId(userAgent) {
const baseUserAgent = userAgent || 'actions/http-client';
const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
if (orchId) {
// Sanitize the orchestration ID to ensure it contains only valid characters
// Valid characters: 0-9, a-z, _, -, .
const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`;
}
return baseUserAgent;
}
_performExponentialBackoff(retryNumber) { _performExponentialBackoff(retryNumber) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "@actions/http-client", "name": "@actions/http-client",
"version": "3.0.0", "version": "3.0.1",
"description": "Actions Http Client", "description": "Actions Http Client",
"keywords": [ "keywords": [
"github", "github",

16
package-lock.json generated
View File

@@ -6,20 +6,20 @@
"": { "": {
"name": "action-send-mail", "name": "action-send-mail",
"dependencies": { "dependencies": {
"@actions/core": "^2.0.1", "@actions/core": "^2.0.2",
"@actions/glob": "^0.5.0", "@actions/glob": "^0.5.0",
"nodemailer": "^7.0.12", "nodemailer": "^7.0.12",
"showdown": "^1.9.1" "showdown": "^1.9.1"
} }
}, },
"node_modules/@actions/core": { "node_modules/@actions/core": {
"version": "2.0.1", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.1.tgz", "resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.2.tgz",
"integrity": "sha512-oBfqT3GwkvLlo1fjvhQLQxuwZCGTarTE5OuZ2Wg10hvhBj7LRIlF611WT4aZS6fDhO5ZKlY7lCAZTlpmyaHaeg==", "integrity": "sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/exec": "^2.0.0", "@actions/exec": "^2.0.0",
"@actions/http-client": "^3.0.0" "@actions/http-client": "^3.0.1"
} }
}, },
"node_modules/@actions/core/node_modules/@actions/exec": { "node_modules/@actions/core/node_modules/@actions/exec": {
@@ -77,9 +77,9 @@
} }
}, },
"node_modules/@actions/http-client": { "node_modules/@actions/http-client": {
"version": "3.0.0", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.0.tgz", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-3.0.1.tgz",
"integrity": "sha512-1s3tXAfVMSz9a4ZEBkXXRQD4QhY3+GAsWSbaYpeknPOKEeyRiU3lH+bHiLMZdo2x/fIeQ/hscL1wCkDLVM2DZQ==", "integrity": "sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"tunnel": "^0.0.6", "tunnel": "^0.0.6",

View File

@@ -2,7 +2,7 @@
"name": "action-send-mail", "name": "action-send-mail",
"main": "main.js", "main": "main.js",
"dependencies": { "dependencies": {
"@actions/core": "^2.0.1", "@actions/core": "^2.0.2",
"@actions/glob": "^0.5.0", "@actions/glob": "^0.5.0",
"nodemailer": "^7.0.12", "nodemailer": "^7.0.12",
"showdown": "^1.9.1" "showdown": "^1.9.1"