-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature/security scanners #49
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Small nitpicks on the Python side.
Since this change requires a database change, the deployment will involve a manual step, please ensure one of the people capable of accessing the host is around when merging. :)
LostLuma
reviewed
May 26, 2024
chillymosh
reviewed
May 26, 2024
AbstractUmbra
approved these changes
May 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds additional token/security scanners and the ability to quickly add additional scanners for other services.
Current scanners:
Discord
GitHub
PyPi
This PR also takes line numbers from the frontend and does them Python side. This has allowed for faster loading, less jumpy behaviour and the ability to highlight particular lines, mainly those which have a known token.
This PR also normalises line endings at paste creation.
The schema had to be changed for line warnings and the new scanners to be accomplished.
This PR also fixed a bug where pressing enter on the language selector on a password protected paste would trigger a htmx request.
Fixed a bug where changing languages more than once on password protected paste would not work.
CSS changes have also been made including:
Changing the font to JetBrains Mono
Changing annotations contrast.
Adding a tooltip to annotations.
Adding line warnings.
All the changes can be found live at:
https://staging.mystb.in
Since this is a large PR, I would like it if this isn't merged until atleast 2 other people have reviewed.
Checklist