Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
- master
pull_request:
branches: [ '*' ]
paths:
- '*.json'
- '*.yaml'
merge_group:
types:
- checks_requested # this is the one that's isn't triggering Codacy analysis
Expand Down
2 changes: 1 addition & 1 deletion python/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
if __name__ == '__main__':
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"

Check warning on line 18 in python/person.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/person.py#L18

Possible hardcoded password: 'xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx'

Check warning on line 18 in python/person.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/person.py#L18

Possible hardcoded password: 'xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx' (B105)

Check failure on line 18 in python/person.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

python/person.py#L18

Possible hardcoded secret: Slack token

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Suggested change
slack_token = "xoxb-123456789012-1234567890123-abcdefghijklmnopqrstuvwx"

See Issue in Codacy
See Issue in Codacy
See Issue in Codacy