-
Notifications
You must be signed in to change notification settings - Fork 977
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
Github Actions : Added Mypy and Python Bandit Security automation #1284
base: main
Are you sure you want to change the base?
Conversation
Added Bandit security test for python
Mypy is an incredibly useful tool for checking python code quality. It is more specifically a static type checker.
Apply only on changed files
Congratulations for making your first Pull Request at Fusion!! 🎉 Someone from our team will review it soon. |
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.
Thanks for the PR @hardiksharma11. I have left few changes. Also remove the irrelevant comments since not required
uses: ioggstream/[email protected] # Using Bandit for security checks | ||
with: | ||
project_path: . # Path to the project to scan | ||
ignore_failure: true # Continue the workflow even if Bandit reports issues |
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.
we obviously dont want to ignore errors and failures. we want the checks to fail on encountering such errors
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # Executes the job on the latest version of Ubuntu |
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.
point to a ubuntu version (preferably 22.04), not pinning a version might introduce regression in future
@@ -0,0 +1,27 @@ | |||
name: Security check - Bandit # Name of the GitHub Actions workflow | |||
|
|||
on: [push, pull_request] # Trigger the workflow |
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.
why are you thinking we should run the actions on both the time we "push" changes and open "pull requests".
Proposed changes
Brief description of what is fixed or changed
Mypy Check : Validate and enforce type annotations and static typing.
Bandit Security Test : Scan for security vulnerabilities and potential security risks.
Types of changes
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that applyScreenshots
Please attach the screenshots of the changes made in case of change in user interface
Other information
Any other information that is important to this pull request