@capraconsulting/cals-cli 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cals-cli.js +20 -14
- package/lib/cals-cli.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.es.js +73 -17
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +77 -20
- package/lib/index.js.map +1 -1
- package/lib/sonarcloud/index.d.ts +2 -0
- package/lib/sonarcloud/service.d.ts +33 -0
- package/lib/sonarcloud/token.d.ts +4 -0
- package/package.json +34 -34
package/lib/cals-cli.js
CHANGED
|
@@ -47,7 +47,7 @@ var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
|
47
47
|
var findUp__default = /*#__PURE__*/_interopDefaultLegacy(findUp);
|
|
48
48
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
49
49
|
|
|
50
|
-
var version = "2.
|
|
50
|
+
var version = "2.25.0";
|
|
51
51
|
var engines = {
|
|
52
52
|
node: ">=12.0.0"
|
|
53
53
|
};
|
|
@@ -737,11 +737,15 @@ class GitHubService {
|
|
|
737
737
|
login: it.login,
|
|
738
738
|
data: it,
|
|
739
739
|
})),
|
|
740
|
-
...(await this.getOrgMembersInvitedList(org)).map((it) =>
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
740
|
+
...(await this.getOrgMembersInvitedList(org)).map((it) => {
|
|
741
|
+
var _a;
|
|
742
|
+
return ({
|
|
743
|
+
type: "invited",
|
|
744
|
+
// TODO: Fix ?? case properly
|
|
745
|
+
login: (_a = it.login) !== null && _a !== void 0 ? _a : "invalid",
|
|
746
|
+
data: it,
|
|
747
|
+
});
|
|
748
|
+
}),
|
|
745
749
|
];
|
|
746
750
|
}
|
|
747
751
|
async getRepository(owner, repo) {
|
|
@@ -756,7 +760,6 @@ class GitHubService {
|
|
|
756
760
|
async getRepositoryTeamsList(repo) {
|
|
757
761
|
return this.cache.json(`repository-teams-list-${repo.id}`, async () => {
|
|
758
762
|
const options = this.octokit.repos.listTeams.endpoint.merge({
|
|
759
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
760
763
|
owner: repo.owner.login,
|
|
761
764
|
repo: repo.name,
|
|
762
765
|
});
|
|
@@ -811,11 +814,15 @@ class GitHubService {
|
|
|
811
814
|
login: it.login,
|
|
812
815
|
data: it,
|
|
813
816
|
})),
|
|
814
|
-
...(await this.getTeamMemberInvitedList(org, team)).map((it) =>
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
817
|
+
...(await this.getTeamMemberInvitedList(org, team)).map((it) => {
|
|
818
|
+
var _a;
|
|
819
|
+
return ({
|
|
820
|
+
type: "invited",
|
|
821
|
+
// TODO: Fix ?? case properly
|
|
822
|
+
login: (_a = it.login) !== null && _a !== void 0 ? _a : "invalid",
|
|
823
|
+
data: it,
|
|
824
|
+
});
|
|
825
|
+
}),
|
|
819
826
|
];
|
|
820
827
|
}
|
|
821
828
|
async getSearchedPullRequestList() {
|
|
@@ -1460,7 +1467,6 @@ async function getProjects(github, orgs, definition, snyk) {
|
|
|
1460
1467
|
const definitionRepos = lodash.keyBy(getRepos(definition), (it) => it.id);
|
|
1461
1468
|
const projectGroups = Object.values(repos.reduce((acc, cur) => {
|
|
1462
1469
|
var _a, _b, _c, _d;
|
|
1463
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
1464
1470
|
const org = cur.repository.owner.login;
|
|
1465
1471
|
const repoId = getRepoId(org, cur.repository.name);
|
|
1466
1472
|
const projectName = (_c = (_b = (_a = definitionRepos[repoId]) === null || _a === void 0 ? void 0 : _a.project) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : "Unknown";
|
|
@@ -3488,7 +3494,7 @@ async function main() {
|
|
|
3488
3494
|
/ /___/ ___ |/ /______/ /
|
|
3489
3495
|
\\____/_/ |_/_____/____/
|
|
3490
3496
|
cli ${version}
|
|
3491
|
-
built ${"
|
|
3497
|
+
built ${"2023-02-17T14:13:51+0000"}
|
|
3492
3498
|
|
|
3493
3499
|
https://github.com/capralifecycle/cals-cli/
|
|
3494
3500
|
|
package/lib/cals-cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cals-cli.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cals-cli.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export * as definition from "./definition";
|
|
|
9
9
|
export * as github from "./github";
|
|
10
10
|
export * as loadSecrets from "./load-secrets";
|
|
11
11
|
export * as snyk from "./snyk";
|
|
12
|
+
export * as sonarCloud from "./sonarcloud";
|
|
12
13
|
export * from "./testing";
|
|
13
14
|
export { CacheProvider, Config, createGitHubService, createReporter, DefinitionFile, GitHubService, Reporter, };
|
package/lib/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ import execa from 'execa';
|
|
|
22
22
|
import { performance } from 'perf_hooks';
|
|
23
23
|
import { Transform } from 'stream';
|
|
24
24
|
|
|
25
|
-
var version = "2.
|
|
25
|
+
var version = "2.25.0";
|
|
26
26
|
|
|
27
27
|
class CacheProvider {
|
|
28
28
|
constructor(config) {
|
|
@@ -813,11 +813,15 @@ class GitHubService {
|
|
|
813
813
|
login: it.login,
|
|
814
814
|
data: it,
|
|
815
815
|
})),
|
|
816
|
-
...(await this.getOrgMembersInvitedList(org)).map((it) =>
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
816
|
+
...(await this.getOrgMembersInvitedList(org)).map((it) => {
|
|
817
|
+
var _a;
|
|
818
|
+
return ({
|
|
819
|
+
type: "invited",
|
|
820
|
+
// TODO: Fix ?? case properly
|
|
821
|
+
login: (_a = it.login) !== null && _a !== void 0 ? _a : "invalid",
|
|
822
|
+
data: it,
|
|
823
|
+
});
|
|
824
|
+
}),
|
|
821
825
|
];
|
|
822
826
|
}
|
|
823
827
|
async getRepository(owner, repo) {
|
|
@@ -832,7 +836,6 @@ class GitHubService {
|
|
|
832
836
|
async getRepositoryTeamsList(repo) {
|
|
833
837
|
return this.cache.json(`repository-teams-list-${repo.id}`, async () => {
|
|
834
838
|
const options = this.octokit.repos.listTeams.endpoint.merge({
|
|
835
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
836
839
|
owner: repo.owner.login,
|
|
837
840
|
repo: repo.name,
|
|
838
841
|
});
|
|
@@ -887,11 +890,15 @@ class GitHubService {
|
|
|
887
890
|
login: it.login,
|
|
888
891
|
data: it,
|
|
889
892
|
})),
|
|
890
|
-
...(await this.getTeamMemberInvitedList(org, team)).map((it) =>
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
893
|
+
...(await this.getTeamMemberInvitedList(org, team)).map((it) => {
|
|
894
|
+
var _a;
|
|
895
|
+
return ({
|
|
896
|
+
type: "invited",
|
|
897
|
+
// TODO: Fix ?? case properly
|
|
898
|
+
login: (_a = it.login) !== null && _a !== void 0 ? _a : "invalid",
|
|
899
|
+
data: it,
|
|
900
|
+
});
|
|
901
|
+
}),
|
|
895
902
|
];
|
|
896
903
|
}
|
|
897
904
|
async getSearchedPullRequestList() {
|
|
@@ -1117,7 +1124,7 @@ async function createGitHubService(props) {
|
|
|
1117
1124
|
});
|
|
1118
1125
|
}
|
|
1119
1126
|
|
|
1120
|
-
var index$
|
|
1127
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
1121
1128
|
__proto__: null,
|
|
1122
1129
|
DefinitionFile: DefinitionFile,
|
|
1123
1130
|
getGitHubOrgs: getGitHubOrgs,
|
|
@@ -1126,7 +1133,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
1126
1133
|
parseDefinition: parseDefinition
|
|
1127
1134
|
});
|
|
1128
1135
|
|
|
1129
|
-
var index$
|
|
1136
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
1130
1137
|
__proto__: null,
|
|
1131
1138
|
createGitHubService: createGitHubService,
|
|
1132
1139
|
GitHubService: GitHubService
|
|
@@ -1403,7 +1410,7 @@ function loadSecretsCli(props) {
|
|
|
1403
1410
|
});
|
|
1404
1411
|
}
|
|
1405
1412
|
|
|
1406
|
-
var index$
|
|
1413
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
1407
1414
|
__proto__: null,
|
|
1408
1415
|
loadSecretsCli: loadSecretsCli
|
|
1409
1416
|
});
|
|
@@ -1509,7 +1516,7 @@ function getGitHubRepoId(repo) {
|
|
|
1509
1516
|
return repo ? `${repo.owner}/${repo.name}` : undefined;
|
|
1510
1517
|
}
|
|
1511
1518
|
|
|
1512
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
1519
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
1513
1520
|
__proto__: null,
|
|
1514
1521
|
createSnykService: createSnykService,
|
|
1515
1522
|
SnykService: SnykService,
|
|
@@ -1517,6 +1524,55 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1517
1524
|
getGitHubRepoId: getGitHubRepoId
|
|
1518
1525
|
});
|
|
1519
1526
|
|
|
1527
|
+
class SonarCloudService {
|
|
1528
|
+
constructor(props) {
|
|
1529
|
+
this.config = props.config;
|
|
1530
|
+
this.tokenProvider = props.tokenProvider;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Returns metrics for project with given key.
|
|
1534
|
+
* ONLY test coverage metrics are returned as of now
|
|
1535
|
+
*/
|
|
1536
|
+
async getMetricsByProjectKey(sonarCloudProjectKey) {
|
|
1537
|
+
const token = await this.tokenProvider.getToken();
|
|
1538
|
+
if (token === undefined) {
|
|
1539
|
+
throw new Error("Missing token for SonarCloud");
|
|
1540
|
+
}
|
|
1541
|
+
const response = await fetch(`https://sonarcloud.io/api/measures/component?component=${encodeURIComponent(sonarCloudProjectKey)}&metricKeys=coverage`, {
|
|
1542
|
+
method: "GET",
|
|
1543
|
+
headers: {
|
|
1544
|
+
Accept: "application/json",
|
|
1545
|
+
Authorization: `token ${token}`,
|
|
1546
|
+
},
|
|
1547
|
+
agent: this.config.agent,
|
|
1548
|
+
});
|
|
1549
|
+
if (response.status === 401) {
|
|
1550
|
+
process.stderr.write("Unauthorized - removing token\n");
|
|
1551
|
+
await this.tokenProvider.markInvalid();
|
|
1552
|
+
}
|
|
1553
|
+
if (response.status === 404) {
|
|
1554
|
+
process.stderr.write("Project does not exist in SonarCloud\n");
|
|
1555
|
+
return undefined;
|
|
1556
|
+
}
|
|
1557
|
+
if (!response.ok) {
|
|
1558
|
+
throw new Error(`Response from SonarCloud not OK (${response.status}): ${JSON.stringify(response)}`);
|
|
1559
|
+
}
|
|
1560
|
+
return (await response.json());
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
function createSonarCloudService(props) {
|
|
1564
|
+
return new SonarCloudService({
|
|
1565
|
+
config: props.config,
|
|
1566
|
+
tokenProvider: props.tokenProvider,
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
1571
|
+
__proto__: null,
|
|
1572
|
+
createSonarCloudService: createSonarCloudService,
|
|
1573
|
+
SonarCloudService: SonarCloudService
|
|
1574
|
+
});
|
|
1575
|
+
|
|
1520
1576
|
class TestExecutor {
|
|
1521
1577
|
constructor() {
|
|
1522
1578
|
this.shutdown = false;
|
|
@@ -1967,5 +2023,5 @@ async function waitForEnterToContinue(prompt = "Press enter to continue") {
|
|
|
1967
2023
|
|
|
1968
2024
|
const VERSION = version;
|
|
1969
2025
|
|
|
1970
|
-
export { CacheProvider, Config, DefinitionFile, GitHubService, Reporter, TestExecutor, VERSION, createGitHubService, createNetwork, createReporter, createTestExecutor, curl, index$
|
|
2026
|
+
export { CacheProvider, Config, DefinitionFile, GitHubService, Reporter, TestExecutor, VERSION, createGitHubService, createNetwork, createReporter, createTestExecutor, curl, index$4 as definition, getDockerHostAddress, index$3 as github, index$2 as loadSecrets, pollForCondition, runNpmRunScript, index$1 as snyk, index as sonarCloud, startContainer, waitForEnterToContinue, waitForHttpOk, waitForPostgresAvailable };
|
|
1971
2027
|
//# sourceMappingURL=index.es.js.map
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var keytar__default = /*#__PURE__*/_interopDefaultLegacy(keytar);
|
|
|
44
44
|
var read__default = /*#__PURE__*/_interopDefaultLegacy(read);
|
|
45
45
|
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
|
|
46
46
|
|
|
47
|
-
var version = "2.
|
|
47
|
+
var version = "2.25.0";
|
|
48
48
|
|
|
49
49
|
class CacheProvider {
|
|
50
50
|
constructor(config) {
|
|
@@ -835,11 +835,15 @@ class GitHubService {
|
|
|
835
835
|
login: it.login,
|
|
836
836
|
data: it,
|
|
837
837
|
})),
|
|
838
|
-
...(await this.getOrgMembersInvitedList(org)).map((it) =>
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
838
|
+
...(await this.getOrgMembersInvitedList(org)).map((it) => {
|
|
839
|
+
var _a;
|
|
840
|
+
return ({
|
|
841
|
+
type: "invited",
|
|
842
|
+
// TODO: Fix ?? case properly
|
|
843
|
+
login: (_a = it.login) !== null && _a !== void 0 ? _a : "invalid",
|
|
844
|
+
data: it,
|
|
845
|
+
});
|
|
846
|
+
}),
|
|
843
847
|
];
|
|
844
848
|
}
|
|
845
849
|
async getRepository(owner, repo) {
|
|
@@ -854,7 +858,6 @@ class GitHubService {
|
|
|
854
858
|
async getRepositoryTeamsList(repo) {
|
|
855
859
|
return this.cache.json(`repository-teams-list-${repo.id}`, async () => {
|
|
856
860
|
const options = this.octokit.repos.listTeams.endpoint.merge({
|
|
857
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
858
861
|
owner: repo.owner.login,
|
|
859
862
|
repo: repo.name,
|
|
860
863
|
});
|
|
@@ -909,11 +912,15 @@ class GitHubService {
|
|
|
909
912
|
login: it.login,
|
|
910
913
|
data: it,
|
|
911
914
|
})),
|
|
912
|
-
...(await this.getTeamMemberInvitedList(org, team)).map((it) =>
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
...(await this.getTeamMemberInvitedList(org, team)).map((it) => {
|
|
916
|
+
var _a;
|
|
917
|
+
return ({
|
|
918
|
+
type: "invited",
|
|
919
|
+
// TODO: Fix ?? case properly
|
|
920
|
+
login: (_a = it.login) !== null && _a !== void 0 ? _a : "invalid",
|
|
921
|
+
data: it,
|
|
922
|
+
});
|
|
923
|
+
}),
|
|
917
924
|
];
|
|
918
925
|
}
|
|
919
926
|
async getSearchedPullRequestList() {
|
|
@@ -1139,7 +1146,7 @@ async function createGitHubService(props) {
|
|
|
1139
1146
|
});
|
|
1140
1147
|
}
|
|
1141
1148
|
|
|
1142
|
-
var index$
|
|
1149
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
1143
1150
|
__proto__: null,
|
|
1144
1151
|
DefinitionFile: DefinitionFile,
|
|
1145
1152
|
getGitHubOrgs: getGitHubOrgs,
|
|
@@ -1148,7 +1155,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
1148
1155
|
parseDefinition: parseDefinition
|
|
1149
1156
|
});
|
|
1150
1157
|
|
|
1151
|
-
var index$
|
|
1158
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
1152
1159
|
__proto__: null,
|
|
1153
1160
|
createGitHubService: createGitHubService,
|
|
1154
1161
|
GitHubService: GitHubService
|
|
@@ -1425,7 +1432,7 @@ function loadSecretsCli(props) {
|
|
|
1425
1432
|
});
|
|
1426
1433
|
}
|
|
1427
1434
|
|
|
1428
|
-
var index$
|
|
1435
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
1429
1436
|
__proto__: null,
|
|
1430
1437
|
loadSecretsCli: loadSecretsCli
|
|
1431
1438
|
});
|
|
@@ -1531,7 +1538,7 @@ function getGitHubRepoId(repo) {
|
|
|
1531
1538
|
return repo ? `${repo.owner}/${repo.name}` : undefined;
|
|
1532
1539
|
}
|
|
1533
1540
|
|
|
1534
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
1541
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
1535
1542
|
__proto__: null,
|
|
1536
1543
|
createSnykService: createSnykService,
|
|
1537
1544
|
SnykService: SnykService,
|
|
@@ -1539,6 +1546,55 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
1539
1546
|
getGitHubRepoId: getGitHubRepoId
|
|
1540
1547
|
});
|
|
1541
1548
|
|
|
1549
|
+
class SonarCloudService {
|
|
1550
|
+
constructor(props) {
|
|
1551
|
+
this.config = props.config;
|
|
1552
|
+
this.tokenProvider = props.tokenProvider;
|
|
1553
|
+
}
|
|
1554
|
+
/**
|
|
1555
|
+
* Returns metrics for project with given key.
|
|
1556
|
+
* ONLY test coverage metrics are returned as of now
|
|
1557
|
+
*/
|
|
1558
|
+
async getMetricsByProjectKey(sonarCloudProjectKey) {
|
|
1559
|
+
const token = await this.tokenProvider.getToken();
|
|
1560
|
+
if (token === undefined) {
|
|
1561
|
+
throw new Error("Missing token for SonarCloud");
|
|
1562
|
+
}
|
|
1563
|
+
const response = await fetch__default["default"](`https://sonarcloud.io/api/measures/component?component=${encodeURIComponent(sonarCloudProjectKey)}&metricKeys=coverage`, {
|
|
1564
|
+
method: "GET",
|
|
1565
|
+
headers: {
|
|
1566
|
+
Accept: "application/json",
|
|
1567
|
+
Authorization: `token ${token}`,
|
|
1568
|
+
},
|
|
1569
|
+
agent: this.config.agent,
|
|
1570
|
+
});
|
|
1571
|
+
if (response.status === 401) {
|
|
1572
|
+
process.stderr.write("Unauthorized - removing token\n");
|
|
1573
|
+
await this.tokenProvider.markInvalid();
|
|
1574
|
+
}
|
|
1575
|
+
if (response.status === 404) {
|
|
1576
|
+
process.stderr.write("Project does not exist in SonarCloud\n");
|
|
1577
|
+
return undefined;
|
|
1578
|
+
}
|
|
1579
|
+
if (!response.ok) {
|
|
1580
|
+
throw new Error(`Response from SonarCloud not OK (${response.status}): ${JSON.stringify(response)}`);
|
|
1581
|
+
}
|
|
1582
|
+
return (await response.json());
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
function createSonarCloudService(props) {
|
|
1586
|
+
return new SonarCloudService({
|
|
1587
|
+
config: props.config,
|
|
1588
|
+
tokenProvider: props.tokenProvider,
|
|
1589
|
+
});
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
1593
|
+
__proto__: null,
|
|
1594
|
+
createSonarCloudService: createSonarCloudService,
|
|
1595
|
+
SonarCloudService: SonarCloudService
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1542
1598
|
class TestExecutor {
|
|
1543
1599
|
constructor() {
|
|
1544
1600
|
this.shutdown = false;
|
|
@@ -2001,13 +2057,14 @@ exports.createNetwork = createNetwork;
|
|
|
2001
2057
|
exports.createReporter = createReporter;
|
|
2002
2058
|
exports.createTestExecutor = createTestExecutor;
|
|
2003
2059
|
exports.curl = curl;
|
|
2004
|
-
exports.definition = index$
|
|
2060
|
+
exports.definition = index$4;
|
|
2005
2061
|
exports.getDockerHostAddress = getDockerHostAddress;
|
|
2006
|
-
exports.github = index$
|
|
2007
|
-
exports.loadSecrets = index$
|
|
2062
|
+
exports.github = index$3;
|
|
2063
|
+
exports.loadSecrets = index$2;
|
|
2008
2064
|
exports.pollForCondition = pollForCondition;
|
|
2009
2065
|
exports.runNpmRunScript = runNpmRunScript;
|
|
2010
|
-
exports.snyk = index;
|
|
2066
|
+
exports.snyk = index$1;
|
|
2067
|
+
exports.sonarCloud = index;
|
|
2011
2068
|
exports.startContainer = startContainer;
|
|
2012
2069
|
exports.waitForEnterToContinue = waitForEnterToContinue;
|
|
2013
2070
|
exports.waitForHttpOk = waitForHttpOk;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Config } from "../config";
|
|
2
|
+
import { SonarCloudTokenProvider } from "./token";
|
|
3
|
+
interface SonarCloudServiceProps {
|
|
4
|
+
config: Config;
|
|
5
|
+
tokenProvider: SonarCloudTokenProvider;
|
|
6
|
+
}
|
|
7
|
+
export declare class SonarCloudService {
|
|
8
|
+
private config;
|
|
9
|
+
private tokenProvider;
|
|
10
|
+
constructor(props: SonarCloudServiceProps);
|
|
11
|
+
/**
|
|
12
|
+
* Returns metrics for project with given key.
|
|
13
|
+
* ONLY test coverage metrics are returned as of now
|
|
14
|
+
*/
|
|
15
|
+
getMetricsByProjectKey(sonarCloudProjectKey: string): Promise<{
|
|
16
|
+
component: {
|
|
17
|
+
id: string;
|
|
18
|
+
key: string;
|
|
19
|
+
name: string;
|
|
20
|
+
qualifier: string;
|
|
21
|
+
measures: {
|
|
22
|
+
metric: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
} | undefined>;
|
|
27
|
+
}
|
|
28
|
+
interface CreateSonarCloudServiceProps {
|
|
29
|
+
config: Config;
|
|
30
|
+
tokenProvider: SonarCloudTokenProvider;
|
|
31
|
+
}
|
|
32
|
+
export declare function createSonarCloudService(props: CreateSonarCloudServiceProps): SonarCloudService;
|
|
33
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capraconsulting/cals-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "CLI for repeatable tasks in CALS",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "node scripts/create-definition-schema.js && husky install",
|
|
@@ -21,60 +21,60 @@
|
|
|
21
21
|
"cals": "lib/cals-cli.js"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
25
|
-
"@aws-sdk/client-sts": "^3.
|
|
26
|
-
"@octokit/rest": "^18.
|
|
27
|
-
"ajv": "^8.
|
|
24
|
+
"@aws-sdk/client-secrets-manager": "^3.105.0",
|
|
25
|
+
"@aws-sdk/client-sts": "^3.105.0",
|
|
26
|
+
"@octokit/rest": "^18.12.0",
|
|
27
|
+
"ajv": "^8.11.0",
|
|
28
28
|
"cachedir": "^2.3.0",
|
|
29
29
|
"chalk": "^4.0.0",
|
|
30
30
|
"execa": "^5.0.0",
|
|
31
31
|
"find-up": "^5.0.0",
|
|
32
|
-
"js-yaml": "^4.
|
|
33
|
-
"keytar": "^7.
|
|
34
|
-
"lodash": "^4.17.
|
|
35
|
-
"node-fetch": "^2.6.
|
|
32
|
+
"js-yaml": "^4.1.0",
|
|
33
|
+
"keytar": "^7.9.0",
|
|
34
|
+
"lodash": "^4.17.21",
|
|
35
|
+
"node-fetch": "^2.6.7",
|
|
36
36
|
"p-limit": "^3.0.0",
|
|
37
37
|
"p-map": "^4.0.0",
|
|
38
38
|
"read": "^1.0.7",
|
|
39
39
|
"rimraf": "^3.0.2",
|
|
40
|
-
"semver": "^7.3.
|
|
40
|
+
"semver": "^7.3.7",
|
|
41
41
|
"sprintf-js": "^1.1.2",
|
|
42
|
-
"yargs": "^17.
|
|
42
|
+
"yargs": "^17.5.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@commitlint/cli": "
|
|
46
|
-
"@commitlint/config-conventional": "
|
|
47
|
-
"@octokit/types": "6.
|
|
45
|
+
"@commitlint/cli": "17.1.2",
|
|
46
|
+
"@commitlint/config-conventional": "17.1.0",
|
|
47
|
+
"@octokit/types": "6.41.0",
|
|
48
48
|
"@rollup/plugin-alias": "3.1.9",
|
|
49
49
|
"@rollup/plugin-json": "4.1.0",
|
|
50
|
-
"@rollup/plugin-replace": "
|
|
51
|
-
"@types/jest": "27.
|
|
50
|
+
"@rollup/plugin-replace": "4.0.0",
|
|
51
|
+
"@types/jest": "27.5.2",
|
|
52
52
|
"@types/js-yaml": "4.0.5",
|
|
53
|
-
"@types/lodash": "4.14.
|
|
54
|
-
"@types/node": "14.18.
|
|
55
|
-
"@types/node-fetch": "2.6.
|
|
53
|
+
"@types/lodash": "4.14.186",
|
|
54
|
+
"@types/node": "14.18.32",
|
|
55
|
+
"@types/node-fetch": "2.6.2",
|
|
56
56
|
"@types/read": "0.0.29",
|
|
57
57
|
"@types/rimraf": "3.0.2",
|
|
58
|
-
"@types/semver": "7.3.
|
|
58
|
+
"@types/semver": "7.3.12",
|
|
59
59
|
"@types/sprintf-js": "1.1.2",
|
|
60
|
-
"@types/yargs": "17.0.
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
62
|
-
"@typescript-eslint/parser": "5.
|
|
60
|
+
"@types/yargs": "17.0.13",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "5.27.1",
|
|
62
|
+
"@typescript-eslint/parser": "5.27.1",
|
|
63
63
|
"dateformat": "4.6.3",
|
|
64
|
-
"del": "6.
|
|
65
|
-
"eslint": "8.
|
|
66
|
-
"eslint-config-prettier": "8.
|
|
67
|
-
"eslint-plugin-prettier": "4.
|
|
64
|
+
"del": "6.1.1",
|
|
65
|
+
"eslint": "8.26.0",
|
|
66
|
+
"eslint-config-prettier": "8.5.0",
|
|
67
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
68
68
|
"husky": "7.0.4",
|
|
69
69
|
"jest": "27.5.1",
|
|
70
|
-
"prettier": "2.
|
|
71
|
-
"rollup": "2.
|
|
72
|
-
"rollup-plugin-typescript2": "0.
|
|
73
|
-
"semantic-release": "19.0.
|
|
70
|
+
"prettier": "2.7.1",
|
|
71
|
+
"rollup": "2.79.1",
|
|
72
|
+
"rollup-plugin-typescript2": "0.34.1",
|
|
73
|
+
"semantic-release": "19.0.5",
|
|
74
74
|
"tempy": "1.0.1",
|
|
75
|
-
"ts-jest": "27.1.
|
|
76
|
-
"typescript": "4.
|
|
77
|
-
"typescript-json-schema": "0.
|
|
75
|
+
"ts-jest": "27.1.5",
|
|
76
|
+
"typescript": "4.8.4",
|
|
77
|
+
"typescript-json-schema": "0.54.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {},
|
|
80
80
|
"files": [
|