Skip to content

Commit

Permalink
🍒 Merge changes from PR #225 to release-v1.5.1 (#227)
Browse files Browse the repository at this point in the history
Co-authored-by: Riku Rouvila <[email protected]>
  • Loading branch information
github-actions[bot] and rikukissa authored Aug 5, 2024
1 parent b1f7553 commit 33bed9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions infrastructure/environments/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,11 @@ export async function listEnvironmentSecrets(
{
owner: owner,
repository_id: repositoryId,
environment_name: environmentName
environment_name: environmentName,
per_page: 100
}
)

return response.data.secrets.map((secret) => ({
...secret,
type: 'SECRET',
Expand All @@ -263,7 +265,8 @@ export async function listRepositorySecrets(
'GET /repos/{owner}/{repo}/actions/secrets',
{
owner: owner,
repo: repositoryName
repo: repositoryName,
per_page: 100
}
)
return response.data.secrets.map((secret) => ({
Expand All @@ -281,9 +284,9 @@ export async function listEnvironmentVariables(
const response = await octokit.request(
'GET /repositories/{repository_id}/environments/{environment_name}/variables',
{
per_page: 30,
repository_id: repositoryId,
environment_name: environmentName,
per_page: 100,
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
Expand Down

0 comments on commit 33bed9c

Please sign in to comment.