Merge pull request #181 from actions/anthonyzavala/bump-octokit-rest-and-lerna
Bump `@octokit/rest` from 19.0.7 to 21.1.1 & `lerna` from 8.2.1 to 8.2.2
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/languageservice": "^0.3.16",
|
"@actions/languageservice": "^0.3.16",
|
||||||
"@actions/workflow-parser": "^0.3.16",
|
"@actions/workflow-parser": "^0.3.16",
|
||||||
"@octokit/rest": "^19.0.7",
|
"@octokit/rest": "^21.1.1",
|
||||||
"@octokit/types": "^9.0.0",
|
"@octokit/types": "^9.0.0",
|
||||||
"vscode-languageserver": "^8.0.2",
|
"vscode-languageserver": "^8.0.2",
|
||||||
"vscode-languageserver-textdocument": "^1.0.7",
|
"vscode-languageserver-textdocument": "^1.0.7",
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ async function getRemoteSecrets(
|
|||||||
environmentSecrets:
|
environmentSecrets:
|
||||||
(environmentName &&
|
(environmentName &&
|
||||||
(await cache.get(`${repo.owner}/${repo.name}/secrets/environment/${environmentName}`, undefined, () =>
|
(await cache.get(`${repo.owner}/${repo.name}/secrets/environment/${environmentName}`, undefined, () =>
|
||||||
fetchEnvironmentSecrets(octokit, repo.id, environmentName)
|
fetchEnvironmentSecrets(octokit, repo.owner, repo.name, environmentName)
|
||||||
))) ||
|
))) ||
|
||||||
[],
|
[],
|
||||||
orgSecrets: await cache.get(`${repo.owner}/secrets`, undefined, () => fetchOrganizationSecrets(octokit, repo))
|
orgSecrets: await cache.get(`${repo.owner}/secrets`, undefined, () => fetchOrganizationSecrets(octokit, repo))
|
||||||
@@ -151,14 +151,16 @@ async function fetchSecrets(octokit: Octokit, owner: string, name: string): Prom
|
|||||||
|
|
||||||
async function fetchEnvironmentSecrets(
|
async function fetchEnvironmentSecrets(
|
||||||
octokit: Octokit,
|
octokit: Octokit,
|
||||||
repositoryId: number,
|
owner: string,
|
||||||
|
name: string,
|
||||||
environmentName: string
|
environmentName: string
|
||||||
): Promise<StringData[]> {
|
): Promise<StringData[]> {
|
||||||
try {
|
try {
|
||||||
return await octokit.paginate(
|
return await octokit.paginate(
|
||||||
octokit.actions.listEnvironmentSecrets,
|
octokit.actions.listEnvironmentSecrets,
|
||||||
{
|
{
|
||||||
repository_id: repositoryId,
|
owner,
|
||||||
|
repo: name,
|
||||||
environment_name: environmentName,
|
environment_name: environmentName,
|
||||||
per_page: 100
|
per_page: 100
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export async function getRemoteVariables(
|
|||||||
environmentVariables:
|
environmentVariables:
|
||||||
(environmentName &&
|
(environmentName &&
|
||||||
(await cache.get(`${repo.owner}/${repo.name}/vars/environment/${environmentName}`, undefined, () =>
|
(await cache.get(`${repo.owner}/${repo.name}/vars/environment/${environmentName}`, undefined, () =>
|
||||||
fetchEnvironmentVariables(octokit, repo.id, environmentName)
|
fetchEnvironmentVariables(octokit, repo.owner, repo.name, environmentName)
|
||||||
))) ||
|
))) ||
|
||||||
[],
|
[],
|
||||||
organizationVariables: await cache.get(`${repo.owner}/vars`, undefined, () =>
|
organizationVariables: await cache.get(`${repo.owner}/vars`, undefined, () =>
|
||||||
@@ -146,14 +146,16 @@ async function fetchVariables(octokit: Octokit, owner: string, name: string): Pr
|
|||||||
|
|
||||||
async function fetchEnvironmentVariables(
|
async function fetchEnvironmentVariables(
|
||||||
octokit: Octokit,
|
octokit: Octokit,
|
||||||
repositoryId: number,
|
owner: string,
|
||||||
|
name: string,
|
||||||
environmentName: string
|
environmentName: string
|
||||||
): Promise<Pair[]> {
|
): Promise<Pair[]> {
|
||||||
try {
|
try {
|
||||||
return await octokit.paginate(
|
return await octokit.paginate(
|
||||||
octokit.actions.listEnvironmentVariables,
|
octokit.actions.listEnvironmentVariables,
|
||||||
{
|
{
|
||||||
repository_id: repositoryId,
|
owner: owner,
|
||||||
|
repo: name,
|
||||||
environment_name: environmentName,
|
environment_name: environmentName,
|
||||||
per_page: 100
|
per_page: 100
|
||||||
},
|
},
|
||||||
|
|||||||
Generated
+507
-547
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"./languageserver"
|
"./languageserver"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lerna": "^8.2.1"
|
"lerna": "^8.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user