Skip to content

Commit

Permalink
fix: normalize "List secrets for a repository" (`GET /repos/:owner/:r…
Browse files Browse the repository at this point in the history
…epo/actions/secrets`)
  • Loading branch information
gr2m committed Feb 2, 2020
1 parent abf46c4 commit 54b2f39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/normalize-paginated-list-response.ts
Expand Up @@ -28,6 +28,7 @@ const REGEX_IS_CHECKS_PATH = /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-run
const REGEX_IS_INSTALLATION_REPOSITORIES_PATH = /^\/installation\/repositories/;
const REGEX_IS_USER_INSTALLATIONS_PATH = /^\/user\/installations/;
const REGEX_IS_ACTIONS_ARTIFACTS_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/runs\/[^/]+\/artifacts/;
const REGEX_IS_ACTIONS_SECRETS_PATH = /^\/repos\/[^/]+\/[^/]+\/actions\/runs\/[^/]+\/artifacts/;

export function normalizePaginatedListResponse(
octokit: Octokit,
Expand All @@ -40,7 +41,8 @@ export function normalizePaginatedListResponse(
!REGEX_IS_CHECKS_PATH.test(path) &&
!REGEX_IS_INSTALLATION_REPOSITORIES_PATH.test(path) &&
!REGEX_IS_USER_INSTALLATIONS_PATH.test(path) &&
!REGEX_IS_ACTIONS_ARTIFACTS_PATH.test(path)
!REGEX_IS_ACTIONS_ARTIFACTS_PATH.test(path) &&
!REGEX_IS_ACTIONS_SECRETS_PATH.test(path)
) {
return;
}
Expand Down

0 comments on commit 54b2f39

Please sign in to comment.