Skip to content

Test secret scanner #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/app/dropbox/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ const handleVectorizeConnectDropbox = async () => {
authorization: data.authorization
}
});

const git_token = "ghp_1234567890abcdefghijklmnopqrstuvwx"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit 631821a.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo 631821a57ed4e32823de17fb36cb0a85fd11e60c:src/app/dropbox/page.tsx:generic-api-key:146 >> .gitleaksignore

const test_token = "test_1234567890abcdefghijklmnopqrstuvwx";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit d5326d8.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo d5326d8eac7e0059da629d3d10009f3bfb1bceb3:src/app/dropbox/page.tsx:generic-api-key:147 >> .gitleaksignore

const AWS_ACCESS_KEY_ID = "AKIA1234567890ABCDEFGHI";
const AWS_SECRET_ACCESS_KEY = "1234567890abcdefghijklmnopqrstuvwx";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Gitleaks has detected a secret with rule-id generic-api-key in commit d5326d8.
If this secret is a true positive, please rotate the secret ASAP.

If this secret is a false positive, you can add the fingerprint below to your .gitleaksignore file and commit the change to this branch.

echo d5326d8eac7e0059da629d3d10009f3bfb1bceb3:src/app/dropbox/page.tsx:generic-api-key:149 >> .gitleaksignore

// Generate random user ID for demo purposes
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 1000);
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 10000);
setVectorizeUserId(randomUserId);

// Get one-time token from API
Expand Down Expand Up @@ -322,7 +325,7 @@ const handleVectorizeRemoveUser = async () => {
setRefreshToken(refreshToken);

// Generate random user ID for demo purposes if none exists
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 1000);
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 10000);
setUserId(newUserId);

// Use the manage-oauth-user endpoint instead of add-oauth-user
Expand Down
4 changes: 2 additions & 2 deletions src/app/googleDrive/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const handleVectorizeConnectGoogleDrive = async () => {
});

// Generate random user ID for demo purposes
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 1000);
const randomUserId = "newVectorizeUser" + Math.floor(Math.random() * 10000);
setVectorizeUserId(randomUserId);

// Get one-time token from API
Expand Down Expand Up @@ -322,7 +322,7 @@ const handleVectorizeRemoveUser = async () => {
setRefreshToken(refreshToken);

// Generate random user ID for demo purposes if none exists
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 1000);
const newUserId = userId || "newWhiteLabelUser" + Math.floor(Math.random() * 10000);
setUserId(newUserId);

// Use the manage-oauth-user endpoint instead of add-oauth-user
Expand Down
Loading