UpMortem / slack-bot

Haly AI Slack Bot. A GPT powered chatbot that can answer questions about your organization using semantic search.
https://haly.ai
GNU Affero General Public License v3.0
23 stars 3 forks source link

Sweep (slow): analyze the code base and flag possible security issues #108

Open nlake44 opened 1 year ago

nlake44 commented 1 year ago
Checklist - [X] `.github/workflows/security.yml` ✅ Commit [`f2b0f69`](https://github.com/UpMortem/slack-bot/commit/f2b0f69eb094c791837edefb63f92237923f995e) - [X] `cloudbuild.yml` ✅ Commit [`26a746b`](https://github.com/UpMortem/slack-bot/commit/26a746beabb36ff35708d1f8518a27b140e4bed9) - [X] `src/services/openai_service.py` ✅ Commit [`8db0c54`](https://github.com/UpMortem/slack-bot/commit/8db0c540a46ef113da444fd4218547f72a8f39b9) - [X] `src/lib/split_string.py` ❌ Failed
upmortem-sweep[bot] commented 1 year ago

Here's the PR! https://github.com/UpMortem/slack-bot/pull/109.

💎 Sweep Pro: I'm creating this ticket using GPT-4. You have unlimited GPT-4 tickets.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/UpMortem/slack-bot/blob/6ba7139eecc28fb1ae8328c1c344935f093ec655/LICENSE#L1-L85 https://github.com/UpMortem/slack-bot/blob/6ba7139eecc28fb1ae8328c1c344935f093ec655/src/services/openai_service.py#L10-L71 https://github.com/UpMortem/slack-bot/blob/6ba7139eecc28fb1ae8328c1c344935f093ec655/test/index_test.py#L1-L4 https://github.com/UpMortem/slack-bot/blob/6ba7139eecc28fb1ae8328c1c344935f093ec655/src/lib/split_string.py#L1-L25 https://github.com/UpMortem/slack-bot/blob/6ba7139eecc28fb1ae8328c1c344935f093ec655/cloudbuild.yml#L1-L38

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/security-analysis.

.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord