Skip to content

Commit

Permalink
chore(cleaning): clean user-generated api key (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart authored Apr 22, 2022
1 parent 831b7ba commit bf4551f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cleaning/delete-api-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ config({path: join(homedir(), '.env')});
function wasCreatedByTheCli(testRunId = '') {
return (key) =>
(key.displayName?.startsWith(`cli-idwindows-latest-${testRunId}`) ||
key.displayName?.startsWith(`cli-idubuntu-latest-${testRunId}`)) &&
key.displayName?.startsWith(`cli-idubuntu-latest-${testRunId}`) ||
key.displayName?.startsWith(`cli-id${testRunId}`)) &&
key.description === 'Generated by the Coveo CLI';
}

Expand Down

0 comments on commit bf4551f

Please sign in to comment.