Skip to content
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

test: bandit CI #225

Merged
merged 3 commits into from
Apr 3, 2024
Merged

test: bandit CI #225

merged 3 commits into from
Apr 3, 2024

Conversation

chaen
Copy link
Contributor

@chaen chaen commented Mar 14, 2024

Add the Bandit check in ruff.
These are basically best practices to avoid obvious security loophole. It comes with quite some false positive, but it is better than false negative when it comes to security :-)

@chaen chaen force-pushed the bandit branch 2 times, most recently from f11c013 to 4a5c7d7 Compare March 14, 2024 13:42
@chaen chaen force-pushed the bandit branch 2 times, most recently from c83af45 to 3eacc96 Compare March 24, 2024 05:59
@chaen chaen closed this Mar 24, 2024
@chaen chaen reopened this Mar 24, 2024
@chaen chaen marked this pull request as ready for review March 25, 2024 06:26
@@ -73,7 +73,7 @@ class GrantType(StrEnum):

authorization_code = "authorization_code"
device_code = "urn:ietf:params:oauth:grant-type:device_code"
refresh_token = "refresh_token"
refresh_token = "refresh_token" # noqa: S105 # False positif of Bandit about hard coded password
Copy link
Member

Choose a reason for hiding this comment

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

either fix the typo or remove the comment

Suggested change
refresh_token = "refresh_token" # noqa: S105 # False positif of Bandit about hard coded password
refresh_token = "refresh_token" # noqa: S105

@chrisburr chrisburr merged commit 01fb8e3 into DIRACGrid:main Apr 3, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants