-
Notifications
You must be signed in to change notification settings - Fork 59
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
[StepSecurity] Apply security best practices #1606
[StepSecurity] Apply security best practices #1606
Conversation
Signed-off-by: StepSecurity Bot <[email protected]>
Welcome, new contributor! It appears that this is your first Pull Request. To give credit where it's due, we ask that you add your information to the
Please make sure you've read our contributing guide. We look forward to reviewing your Pull Request shortly ✨ NOTE: This PR is autogenerated. |
|
9e1372d
to
74f63e9
Compare
…finishing touches
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.
I think we're in business
@aulemahal I made a few small adjustments to the xclim code base. Can you quickly just verify that I haven't angered any |
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.
I think this introduces a bit too many disabling comments. Each time a new dev will work on that code, the same (non-)issues would be raised by the pre-commit hooks, adding (IMO) too much noise and confusion.
I found this option here : https://pylint.readthedocs.io/en/latest/user_guide/configuration/all-options.html#signature-mutators Do you think adding map_groups
and guvectorize
to that list could solve the issues ?
@aulemahal I couldn't get |
@@ -521,7 +522,7 @@ missing-member-max-choices = 1 | |||
mixin-class-rgx = ".*[Mm]ixin" | |||
|
|||
# List of decorators that change the signature of a decorated function. | |||
# signature-mutators = | |||
signature-mutators = ["xclim.sdba.base.map_groups"] |
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.
wouldn't adding "numba.guvectorize" solve the issues in xclim/indices/fire/_ffdi.py and xclim/sdba/nbutils.py ?
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.
For the record, that doesn't work. Maybe one day this will be resolved.
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.
Fair enough then! Hopefully that gets fixed one day!
Summary
This pull request is created by StepSecurity at the request of @Zeitsperre. Please merge the Pull Request to incorporate the requested changes. Please tag @Zeitsperre on your message if you have any questions related to the PR.
Security Fixes
Pinned Dependencies
GitHub Action tags and Docker tags are mutatble. This poses a security risk. GitHub's Security Hardening guide recommends pinning actions to full length commit.
Keeping your actions up to date with Dependabot
With Dependabot version updates, when Dependabot identifies an outdated dependency, it raises a pull request to update the manifest to the latest version of the dependency. This is recommended by GitHub as well as The Open Source Security Foundation (OpenSSF).
Maintain Code Quality with Pre-Commit
Pre-commit is a framework for managing and maintaining multi-language pre-commit hooks. Hooks can be any scripts, code, or binaries that run at any stage of the git workflow. Pre-commit hooks are useful for enforcing code quality, code formatting, and detecting security vulnerabilities.
Feedback
For bug reports, feature requests, and general feedback; please email [email protected]. To create such PRs, please visit https://app.stepsecurity.io/securerepo.
Signed-off-by: StepSecurity Bot [email protected]