Skip to content

Commit 6ac584e

Browse files
Merge pull request #436 from technote-space/release/next-v5.3.16
release: v5.3.17
2 parents e5c6b8b + be5de18 commit 6ac584e

File tree

3 files changed

+33
-20
lines changed

3 files changed

+33
-20
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "5.3.16",
3+
"version": "5.3.17",
44
"description": "Helper for GitHub Action.",
55
"keywords": [
66
"github",
@@ -45,7 +45,7 @@
4545
"dependencies": {
4646
"@actions/core": "^1.10.0",
4747
"@actions/github": "^5.1.1",
48-
"@technote-space/github-action-log-helper": "^0.2.18",
48+
"@technote-space/github-action-log-helper": "^0.2.19",
4949
"shell-escape": "^0.2.0",
5050
"sprintf-js": "^1.1.2"
5151
},
@@ -54,7 +54,7 @@
5454
"@commitlint/config-conventional": "^17.6.3",
5555
"@rollup/plugin-typescript": "^11.1.1",
5656
"@sindresorhus/tsconfig": "^3.0.1",
57-
"@technote-space/github-action-test-helper": "^0.11.15",
57+
"@technote-space/github-action-test-helper": "^0.11.17",
5858
"@types/node": "^20.2.5",
5959
"@types/shell-escape": "^0.2.1",
6060
"@typescript-eslint/eslint-plugin": "^5.59.7",

src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
import type { Octokit, components } from './types.js';
2+
import crypto from 'crypto';
23
import ApiHelper from './api-helper.js';
34
import Command from './command.js';
45
import GitHelper from './git-helper.js';
56

7+
if (typeof global.crypto !== 'object') {
8+
global.crypto = crypto;
9+
}
10+
11+
if (typeof global.crypto.getRandomValues !== 'function') {
12+
global.crypto.getRandomValues = getRandomValues;
13+
}
14+
15+
function getRandomValues(array) {
16+
return crypto.webcrypto.getRandomValues(array);
17+
}
18+
619
export * as Utils from './utils.js';
720
export * as ContextHelper from './context-helper.js';
821

yarn.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -574,18 +574,18 @@
574574
resolved "https://registry.yarnpkg.com/@sindresorhus/tsconfig/-/tsconfig-3.0.1.tgz#e2eaebda42aa7a755b11bdfbea847446652e1ac4"
575575
integrity sha512-0/gtPNTY3++0J2BZM5nHHULg0BIMw886gqdn8vWN+Av6bgF5ZU2qIcHubAn+Z9KNvJhO8WFE+9kDOU3n6OcKtA==
576576

577-
"@technote-space/github-action-log-helper@^0.2.18":
578-
version "0.2.18"
579-
resolved "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.2.18.tgz#3d716faf2b82deb80f22402ebf669adef806723d"
580-
integrity sha512-37UczJB83YAAbC99fhCmfQ0uAP0FVUgnajNRc/1Ra0hBeHFR2UBlZl75nD/PIhLHWBE9qwW9aGV7QWnmkCSQJA==
577+
"@technote-space/github-action-log-helper@^0.2.19":
578+
version "0.2.19"
579+
resolved "https://registry.yarnpkg.com/@technote-space/github-action-log-helper/-/github-action-log-helper-0.2.19.tgz#9f693dc5baccf3615f0bdde4ea3903df51574023"
580+
integrity sha512-WkGQOqdcSbMGtnU92loB+gY9dgbbBKViUIunOAiUy9hYRz3gCdE5blcj247cVoOzUhssPbVQJQKxG+DHg2plHQ==
581581
dependencies:
582582
"@actions/core" "^1.10.0"
583583
sprintf-js "^1.1.2"
584584

585-
"@technote-space/github-action-test-helper@^0.11.15":
586-
version "0.11.15"
587-
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.11.15.tgz#915a700cc489265a48b0ff99ed0081d89909d565"
588-
integrity sha512-eCWdWACijBwKAOnpdjNHTWxAtvUKh+W0Vhm4zI+sqciPyeDhmvtXaMXnhUJSguazUWnt47yHJiW/b77LP6CUfg==
585+
"@technote-space/github-action-test-helper@^0.11.17":
586+
version "0.11.17"
587+
resolved "https://registry.yarnpkg.com/@technote-space/github-action-test-helper/-/github-action-test-helper-0.11.17.tgz#1a7b2546a357a6c4c5d7a5f3b1b7bfd96ad1b120"
588+
integrity sha512-xNOoscFlqQkbEITlJyxEBrINtdrDKKIMAAQfbnQWyKlSANfzN3sM5TLAjdSYi/WLdv6KKyidRGBkdNq+DwHYoA==
589589
dependencies:
590590
"@actions/core" "^1.10.0"
591591
"@actions/github" "^5.1.1"
@@ -1010,9 +1010,9 @@ braces@^3.0.2:
10101010
fill-range "^7.0.1"
10111011

10121012
c8@^7.13.0:
1013-
version "7.13.0"
1014-
resolved "https://registry.yarnpkg.com/c8/-/c8-7.13.0.tgz#a2a70a851278709df5a9247d62d7f3d4bcb5f2e4"
1015-
integrity sha512-/NL4hQTv1gBL6J6ei80zu3IiTrmePDKXKXOTLpHvcIWZTVYQlDhVWjjWvkhICylE8EwwnMVzDZugCvdx0/DIIA==
1013+
version "7.14.0"
1014+
resolved "https://registry.yarnpkg.com/c8/-/c8-7.14.0.tgz#f368184c73b125a80565e9ab2396ff0be4d732f3"
1015+
integrity sha512-i04rtkkcNcCf7zsQcSv/T9EbUn4RXQ6mropeMcjFOsQXQ0iGLAr/xT6TImQg4+U9hmNpN9XdvPkjUL1IzbgxJw==
10161016
dependencies:
10171017
"@bcoe/v8-coverage" "^0.2.3"
10181018
"@istanbuljs/schema" "^0.1.3"
@@ -2874,9 +2874,9 @@ pkg-types@^1.0.3:
28742874
pathe "^1.1.0"
28752875

28762876
postcss@^8.4.23:
2877-
version "8.4.23"
2878-
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.23.tgz#df0aee9ac7c5e53e1075c24a3613496f9e6552ab"
2879-
integrity sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==
2877+
version "8.4.24"
2878+
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.24.tgz#f714dba9b2284be3cc07dbd2fc57ee4dc972d2df"
2879+
integrity sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==
28802880
dependencies:
28812881
nanoid "^3.3.6"
28822882
picocolors "^1.0.0"
@@ -3276,9 +3276,9 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1:
32763276
ansi-regex "^5.0.1"
32773277

32783278
strip-ansi@^7.0.1:
3279-
version "7.0.1"
3280-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
3281-
integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==
3279+
version "7.1.0"
3280+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
3281+
integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==
32823282
dependencies:
32833283
ansi-regex "^6.0.1"
32843284

0 commit comments

Comments
 (0)