DO NOT MERGE! add slack token just for kicks#13
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)) No newline at end of file | ||
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" No newline at end of file |
There was a problem hiding this comment.
| 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)) No newline at end of file | ||
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" No newline at end of file |
There was a problem hiding this comment.
Codacy found an issue: Possible hardcoded secret: Slack token
Codacy's Analysis Summary3 new issues (≤ 0 minor issue) Review Pull Request in Codacy →
|
There was a problem hiding this comment.
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)) No newline at end of file | ||
| slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx" No newline at end of file |
There was a problem hiding this comment.
🔴 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.