From 08e3bff5584b5c506677e373089922d2a0088426 Mon Sep 17 00:00:00 2001 From: daknis Date: Thu, 10 Mar 2022 15:30:56 -0800 Subject: [PATCH] v1.3.3 - upgrade actions toolkit and set environment name --- lib/action.js | 2 +- node_modules/.package-lock.json | 8 ++++---- .../msdo-client.js | 4 ++-- .../package.json | 2 +- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- src/action.ts | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/action.js b/lib/action.js index 788a8a94..bd6ed30b 100644 --- a/lib/action.js +++ b/lib/action.js @@ -56,7 +56,7 @@ function run() { args.push(languages); } args.push('--github'); - yield client.run(args); + yield client.run(args, 'microsoft/security-devops-action'); }); } run().catch((error) => core.setFailed(error)); diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index 33c623bd..211541a9 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -1,6 +1,6 @@ { "name": "microsoft-security-devops-action", - "version": "1.3.2", + "version": "1.3.3", "lockfileVersion": 2, "requires": true, "packages": { @@ -155,9 +155,9 @@ "license": "BSD-3-Clause" }, "node_modules/microsoft-security-devops-actions-toolkit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/microsoft-security-devops-actions-toolkit/-/microsoft-security-devops-actions-toolkit-1.3.0.tgz", - "integrity": "sha512-WjTbI0qYksIi5qtiFmB8nytY438LHZcQNqq40bzjIjLCfWeLPu+Mmxzl57Gv9mYOIDE+N+yt+Duo5xRq5fo4fQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/microsoft-security-devops-actions-toolkit/-/microsoft-security-devops-actions-toolkit-1.3.1.tgz", + "integrity": "sha512-nbU2nhO+/1zuIgBVJ78ZQmEZmXc0rJVyecgSjkJS8EHwjPze7pHcz+QsIECsko4Aq+v3BgJjpScosKDyD0+Trw==", "dependencies": { "@actions/core": "1.2.6", "@actions/exec": "1.0.4" diff --git a/node_modules/microsoft-security-devops-actions-toolkit/msdo-client.js b/node_modules/microsoft-security-devops-actions-toolkit/msdo-client.js index 1714d163..6f43b657 100644 --- a/node_modules/microsoft-security-devops-actions-toolkit/msdo-client.js +++ b/node_modules/microsoft-security-devops-actions-toolkit/msdo-client.js @@ -76,7 +76,7 @@ class MsdoClient { } }); } - run(inputArgs) { + run(inputArgs, telemetryEnvironment = 'github') { return __awaiter(this, void 0, void 0, function* () { let cliFilePath = null; let args = []; @@ -102,7 +102,7 @@ class MsdoClient { args.push('--export-breaking-results-to-file'); args.push(`${sarifFile}`); args.push('--telemetry-environment'); - args.push('github'); + args.push(telemetryEnvironment); } catch (error) { core.error('Exception occurred while initializing MSDO:'); diff --git a/node_modules/microsoft-security-devops-actions-toolkit/package.json b/node_modules/microsoft-security-devops-actions-toolkit/package.json index 883a53d9..3685f227 100644 --- a/node_modules/microsoft-security-devops-actions-toolkit/package.json +++ b/node_modules/microsoft-security-devops-actions-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "microsoft-security-devops-actions-toolkit", - "version": "1.3.0", + "version": "1.3.1", "description": "Microsoft Security DevOps for GitHub Actions toolkit.", "author": "Microsoft Corporation", "license": "MIT", diff --git a/package-lock.json b/package-lock.json index 42cb8530..23463c53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "microsoft-security-devops-action", - "version": "1.3.2", + "version": "1.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "microsoft-security-devops-action", - "version": "1.3.2", + "version": "1.3.3", "dependencies": { "@actions/core": "1.2.6", "@actions/exec": "1.0.4", - "microsoft-security-devops-actions-toolkit": "1.3.0" + "microsoft-security-devops-actions-toolkit": "1.3.1" }, "devDependencies": { "@types/mocha": "^2.2.44", @@ -172,9 +172,9 @@ "license": "BSD-3-Clause" }, "node_modules/microsoft-security-devops-actions-toolkit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/microsoft-security-devops-actions-toolkit/-/microsoft-security-devops-actions-toolkit-1.3.0.tgz", - "integrity": "sha512-WjTbI0qYksIi5qtiFmB8nytY438LHZcQNqq40bzjIjLCfWeLPu+Mmxzl57Gv9mYOIDE+N+yt+Duo5xRq5fo4fQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/microsoft-security-devops-actions-toolkit/-/microsoft-security-devops-actions-toolkit-1.3.1.tgz", + "integrity": "sha512-nbU2nhO+/1zuIgBVJ78ZQmEZmXc0rJVyecgSjkJS8EHwjPze7pHcz+QsIECsko4Aq+v3BgJjpScosKDyD0+Trw==", "dependencies": { "@actions/core": "1.2.6", "@actions/exec": "1.0.4" @@ -414,9 +414,9 @@ "dev": true }, "microsoft-security-devops-actions-toolkit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/microsoft-security-devops-actions-toolkit/-/microsoft-security-devops-actions-toolkit-1.3.0.tgz", - "integrity": "sha512-WjTbI0qYksIi5qtiFmB8nytY438LHZcQNqq40bzjIjLCfWeLPu+Mmxzl57Gv9mYOIDE+N+yt+Duo5xRq5fo4fQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/microsoft-security-devops-actions-toolkit/-/microsoft-security-devops-actions-toolkit-1.3.1.tgz", + "integrity": "sha512-nbU2nhO+/1zuIgBVJ78ZQmEZmXc0rJVyecgSjkJS8EHwjPze7pHcz+QsIECsko4Aq+v3BgJjpScosKDyD0+Trw==", "requires": { "@actions/core": "1.2.6", "@actions/exec": "1.0.4" diff --git a/package.json b/package.json index 329e36ce..cf966268 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "microsoft-security-devops-action", - "version": "1.3.2", + "version": "1.3.3", "description": "Node dependencies for the microsoft/security-devops-action.", "scripts": { "test": "mocha" @@ -10,7 +10,7 @@ "dependencies": { "@actions/core": "1.2.6", "@actions/exec": "1.0.4", - "microsoft-security-devops-actions-toolkit": "1.3.0" + "microsoft-security-devops-actions-toolkit": "1.3.1" }, "devDependencies": { "@types/mocha": "^2.2.44", diff --git a/src/action.ts b/src/action.ts index fa436424..085a259a 100644 --- a/src/action.ts +++ b/src/action.ts @@ -35,7 +35,7 @@ async function run() { args.push('--github'); - await client.run(args); + await client.run(args, 'microsoft/security-devops-action'); } run().catch((error) => core.setFailed(error)); \ No newline at end of file