Skip to content

Conversation

@harshil21
Copy link
Member

wake up, new ruff just dropped!

new rules added:

@harshil21 harshil21 added the 🛠 code-quality change type: code-quality label Jun 28, 2024
@github-actions github-actions bot removed the 🛠 code-quality change type: code-quality label Jun 28, 2024
@harshil21 harshil21 added the 🛠 code-quality change type: code-quality label Jun 28, 2024
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

Upsie, no, pre-commit is failing I should not approve that :D

@harshil21
Copy link
Member Author

Upsie, no, pre-commit is failing I should not approve that :D

the ruff fix for job queue is probably going to break the type completeness again, do you want to ignore it?

Changes print statements in passportbot to logger statements (UNTESTED)
@harshil21 harshil21 added the ⚙️ examples affected functionality: examples label Jun 29, 2024
for data in passport_data.decrypted_data: # This is where the data gets decrypted
if data.type == "phone_number":
print("Phone: ", data.phone_number)
logger.info("Phone: %s", data.phone_number)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

This expression logs [sensitive data (private)](1) as clear text.
Copy link
Member

Choose a reason for hiding this comment

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

Huh, first time I see this security feature doing something:D

Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

Anything left from your side?

@harshil21
Copy link
Member Author

all good

@Bibo-Joshi Bibo-Joshi merged commit cfc75bb into master Jun 30, 2024
@Bibo-Joshi Bibo-Joshi deleted the bump-ruff branch June 30, 2024 16:22
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🛠 code-quality change type: code-quality ⚙️ examples affected functionality: examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants