Skip to content

Commit b884d89

Browse files
committed
fix: lint
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent 7da9a3e commit b884d89

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

services/apps/security_best_practices_worker/src/activities/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export async function getOSPSBaselineInsights(repoUrl: string, token: string): P
4444

4545
const combinedOutput = `${stdout}\n${stderr}`
4646

47-
if (combinedOutput.includes('401 Unauthorized') || combinedOutput.includes('401 Bad credentials')) {
47+
if (
48+
combinedOutput.includes('401 Unauthorized') ||
49+
combinedOutput.includes('401 Bad credentials')
50+
) {
4851
svc.log.warn('Detected 401 error in privateer output - token invalid or expired!')
4952
throw ApplicationFailure.create({
5053
message: 'GitHub token invalid or expired',

services/apps/security_best_practices_worker/src/workflows/triggerSecurityInsightsCheckForRepos.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ export async function triggerSecurityInsightsCheckForRepos(
8989
attempts++
9090
continue // retry with a different token
9191
} else if (appFailure?.type === 'TokenAuthError') {
92-
console.error(`Token invalid/expired for repo ${repo.repoUrl}, excluding token for this run`)
92+
console.error(
93+
`Token invalid/expired for repo ${repo.repoUrl}, excluding token for this run`,
94+
)
9395
tokenInfo.isRateLimited = true
9496
attempts++
9597
continue // retry with a different token

0 commit comments

Comments
 (0)