-
Notifications
You must be signed in to change notification settings - Fork 1
initial commit #1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| // Construct clone URL with token auth | ||
| // Format: https://x-token-auth:{token}@bitbucket.org/{workspace}/{repo}.git | ||
| const cloneUrl = `https://x-token-auth:${this.token}@bitbucket.org/${this.workspace}/${this.repo}.git`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cloneUrl embeds this.token directly in the git URL, which can leak via process listings and (on failure) via error.message in the thrown exception. That risks exposing credentials in logs/telemetry during transient git errors.
Other Locations
src/sources/bitbucket.ts:218
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
| }); | ||
|
|
||
| const store = await createStore(options); | ||
| const indexKey = options.index || "."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.index || "." will sanitize to an empty key, and the S3 store currently rejects empty keys—so --store s3 + default index will fail at runtime unless --index is explicitly provided. If this is intentional, consider validating earlier so the CLI error is clearer.
Other Locations
src/bin/cmd-index.ts:114src/bin/cmd-index.ts:141src/bin/cmd-index.ts:198
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
| const { data } = await octokit.repos.getContent({ | ||
| owner: this.owner, | ||
| repo: this.repo, | ||
| path: directory, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repos.getContent is called with path: directory, and when directory is "" (root) this may not resolve correctly with Octokit/GitHub API (root content is typically requested without a path). If root listing is needed, consider handling the empty-directory case explicitly to avoid returning an empty list/404.
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
No description provided.