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. |
* 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>
|
DEPENDENCY_CHECK_TOKEN = your GitHub PAT. Any need to be concerned about this? |
@seanpearsonuk No. I have already discussed this with @RobPasMue. |
OK |
@hpohekar In check_vulnerabilities.py, the github integration seems to be used only for creatings issues or security advisories in the github repo. Maybe we can skip those for local run and remove or avoid the github integration? A separate concern is to maintain a copy of a file from another repo in our repo, but we can address it later (may require some change in the original file in the other repo). |
@mkundu1 Done. Thank you. |
|
@mkundu1 @seanpearsonuk @hpohekar - as I posted here #3731 (comment), it is important that these checks are not only performed on pre-commit hooks but also on GitHub actions since they will be the ones reporting the vulnerabilities (if any) to our internal dashboard and on GitHub (privately, of course - users won't see them). Please address this request whenever you have the chance |
@RobPasMue @seanpearsonuk @mkundu1 We have removed this from local pre-commit hook in this PR. It was giving warnings for common Python packages like 'pillow' 'zipp' 'virtualenv' 'urllib3' etc. |
closes #1673
Integrated vulnerability check in pre-commit hooks which will run locally.
There is already work in progress for the deprecated command message, we will use it once it is ready.
Case 1 - check passed.
Case 2 - check failed.