Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe9140f8b2 |
@@ -1,6 +1,4 @@
|
|||||||
name: Build & Test
|
name: Build & Test
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/expressions",
|
"name": "@actions/expressions",
|
||||||
"version": "0.3.17",
|
"version": "0.3.15",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/languageserver",
|
"name": "@actions/languageserver",
|
||||||
"version": "0.3.17",
|
"version": "0.3.15",
|
||||||
"description": "Language server for GitHub Actions",
|
"description": "Language server for GitHub Actions",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -43,9 +43,9 @@
|
|||||||
"watch": "tsc --build tsconfig.build.json --watch"
|
"watch": "tsc --build tsconfig.build.json --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/languageservice": "^0.3.17",
|
"@actions/languageservice": "^0.3.15",
|
||||||
"@actions/workflow-parser": "^0.3.17",
|
"@actions/workflow-parser": "^0.3.15",
|
||||||
"@octokit/rest": "^21.1.1",
|
"@octokit/rest": "^20.1.2",
|
||||||
"@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.owner, repo.name, environmentName)
|
fetchEnvironmentSecrets(octokit, repo.id, environmentName)
|
||||||
))) ||
|
))) ||
|
||||||
[],
|
[],
|
||||||
orgSecrets: await cache.get(`${repo.owner}/secrets`, undefined, () => fetchOrganizationSecrets(octokit, repo))
|
orgSecrets: await cache.get(`${repo.owner}/secrets`, undefined, () => fetchOrganizationSecrets(octokit, repo))
|
||||||
@@ -151,16 +151,14 @@ async function fetchSecrets(octokit: Octokit, owner: string, name: string): Prom
|
|||||||
|
|
||||||
async function fetchEnvironmentSecrets(
|
async function fetchEnvironmentSecrets(
|
||||||
octokit: Octokit,
|
octokit: Octokit,
|
||||||
owner: string,
|
repositoryId: number,
|
||||||
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,
|
||||||
{
|
{
|
||||||
owner,
|
repository_id: repositoryId,
|
||||||
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.owner, repo.name, environmentName)
|
fetchEnvironmentVariables(octokit, repo.id, environmentName)
|
||||||
))) ||
|
))) ||
|
||||||
[],
|
[],
|
||||||
organizationVariables: await cache.get(`${repo.owner}/vars`, undefined, () =>
|
organizationVariables: await cache.get(`${repo.owner}/vars`, undefined, () =>
|
||||||
@@ -146,16 +146,14 @@ async function fetchVariables(octokit: Octokit, owner: string, name: string): Pr
|
|||||||
|
|
||||||
async function fetchEnvironmentVariables(
|
async function fetchEnvironmentVariables(
|
||||||
octokit: Octokit,
|
octokit: Octokit,
|
||||||
owner: string,
|
repositoryId: number,
|
||||||
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,
|
||||||
{
|
{
|
||||||
owner: owner,
|
repository_id: repositoryId,
|
||||||
repo: name,
|
|
||||||
environment_name: environmentName,
|
environment_name: environmentName,
|
||||||
per_page: 100
|
per_page: 100
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/languageservice",
|
"name": "@actions/languageservice",
|
||||||
"version": "0.3.17",
|
"version": "0.3.15",
|
||||||
"description": "Language service for GitHub Actions",
|
"description": "Language service for GitHub Actions",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@@ -44,8 +44,8 @@
|
|||||||
"watch": "tsc --build tsconfig.build.json --watch"
|
"watch": "tsc --build tsconfig.build.json --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/expressions": "^0.3.17",
|
"@actions/expressions": "^0.3.15",
|
||||||
"@actions/workflow-parser": "^0.3.17",
|
"@actions/workflow-parser": "^0.3.15",
|
||||||
"vscode-languageserver-textdocument": "^1.0.7",
|
"vscode-languageserver-textdocument": "^1.0.7",
|
||||||
"vscode-languageserver-types": "^3.17.2",
|
"vscode-languageserver-types": "^3.17.2",
|
||||||
"vscode-uri": "^3.0.8",
|
"vscode-uri": "^3.0.8",
|
||||||
|
|||||||
+1
-1
@@ -6,5 +6,5 @@
|
|||||||
"languageservice",
|
"languageservice",
|
||||||
"languageserver"
|
"languageserver"
|
||||||
],
|
],
|
||||||
"version": "0.3.17"
|
"version": "0.3.15"
|
||||||
}
|
}
|
||||||
Generated
+539
-412
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -8,6 +8,6 @@
|
|||||||
"./languageserver"
|
"./languageserver"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lerna": "^8.2.2"
|
"lerna": "^8.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/workflow-parser",
|
"name": "@actions/workflow-parser",
|
||||||
"version": "0.3.17",
|
"version": "0.3.15",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"source": "./src/index.ts",
|
"source": "./src/index.ts",
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"watch": "tsc --build tsconfig.build.json --watch"
|
"watch": "tsc --build tsconfig.build.json --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/expressions": "^0.3.17",
|
"@actions/expressions": "^0.3.15",
|
||||||
"cronstrue": "^2.21.0",
|
"cronstrue": "^2.21.0",
|
||||||
"yaml": "^2.0.0-8"
|
"yaml": "^2.0.0-8"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1549,10 +1549,6 @@
|
|||||||
"type": "permission-level-any",
|
"type": "permission-level-any",
|
||||||
"description": "Issues and related comments, assignees, labels, and milestones."
|
"description": "Issues and related comments, assignees, labels, and milestones."
|
||||||
},
|
},
|
||||||
"models": {
|
|
||||||
"type": "permission-level-read-or-no-access",
|
|
||||||
"description": "Call AI models with GitHub Models."
|
|
||||||
},
|
|
||||||
"packages": {
|
"packages": {
|
||||||
"type": "permission-level-any",
|
"type": "permission-level-any",
|
||||||
"description": "Packages published to the GitHub Package Platform."
|
"description": "Packages published to the GitHub Package Platform."
|
||||||
|
|||||||
Reference in New Issue
Block a user