-
Notifications
You must be signed in to change notification settings - Fork 43
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
ci: Enhanced code checking #3731
base: main
Are you sure you want to change the base?
Conversation
I would encourage your team to give it a local pass to the tool before enabling it on CI/CD. I'm sure Bandit will detect many issues and it will populate your advisories with a lot of draft ones... See https://actions.docs.ansys.com/version/stable/vulnerability-actions/index.html#check-vulnerabilities-action on how to run the tool locally |
@RobPasMue Sure. Thanks a lot. |
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.
Blocking PR until local resolutions have been performed by @hpohekar to avoid creation of unnecessary advisories
* ci: Add workflow for examples [skip tests] * chore: adding changelog file 3730.maintenance.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
) * refactor: Update docstring and check file extension in Mesh class * chore: adding changelog file 3727.miscellaneous.md [dependabot-skip] * refactor: Update docstring and check file extension in Mesh class * ci: Add workflow for examples [skip tests] (#3730) * ci: Add workflow for examples [skip tests] * chore: adding changelog file 3730.maintenance.md [dependabot-skip] --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> * ci: Error fix * ci: Error fix * ci: Error fix --------- Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
We are going to use this tool offline. We are not going integrate it into CI/CI workflow right now. |
What's the reason for not integrating it into the workflow? |
@RobPasMue We want to integrate it with pre-commit hooks. |
That would be awesome. Once you have something, it might be a good idea to migrate it / make it part of https://github.com/ansys/pre-commit-hooks |
@RobPasMue Sure. |
closes #1673
As discussed with @RobPasMue,
We have an inhouse tool based on Safety and Bandit.
Bandit checks for in-library issues (similar to a static code check that SonarQube would perform)
Safety checks for third-party dependency vulnerabilities
The results for both tools are processed by our action and reported to an internal dashboard.