-
Notifications
You must be signed in to change notification settings - Fork 1
DO NOT MERGE! add slack token just for kicks #13
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
base: master
Are you sure you want to change the base?
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
| person = Person() | ||
| print('User Abbas has been added with id ', person.set_name('Abbas')) | ||
| print('User associated with id 0 is ', person.get_name(0)) | ||
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" |
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.
| person = Person() | ||
| print('User Abbas has been added with id ', person.set_name('Abbas')) | ||
| print('User associated with id 0 is ', person.get_name(0)) | ||
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" |
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.
Codacy found an issue: Possible hardcoded secret: Slack token
Codacy's Analysis Summary3 new issues (≤ 0 medium issue) Review Pull Request in Codacy →
|
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.
Pull Request Overview
This Pull Request introduces a severe security vulnerability by hardcoding a Slack token. Codacy has flagged this issue with multiple high-severity warnings. This PR is currently not up to security standards and should not be merged as is. The hardcoded secret must be removed immediately.
About this PR
- The PR title 'DO NOT MERGE! add slack token just for kicks' indicates this is intentional, but committing hardcoded secrets, even temporarily or for demonstration, is a severe security risk. This token should never be present in source control, even in a non-production branch or a PR explicitly marked as 'DO NOT MERGE'.
💡 Codacy uses AI. Check for mistakes.
| person = Person() | ||
| print('User Abbas has been added with id ', person.set_name('Abbas')) | ||
| print('User associated with id 0 is ', person.get_name(0)) | ||
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" |
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.
🔴 HIGH RISK
Codacy has detected multiple hardcoded secrets. This line exposes a Slack token, which is a critical security vulnerability. Sensitive information like API tokens should always be stored securely, for example, using environment variables or a secret management service, and never committed to version control.
This might be a simple fix:
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" |
No description provided.