-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add GHA updater for keep sample data at a reasonable date #11593
Conversation
DryRun Security SummaryThe code changes update a unit test file and a GitHub Actions workflow for sample data, focusing on documentation and test setup modifications, with potential security considerations around data loading, binary usage, and credential management. Expand for full summarySummary: The provided code changes appear to be focused on updating the unit test file However, there are a few areas that warrant further review and consideration:
Overall, the changes appear to be focused on improving the test suite and documentation, and do not seem to introduce any immediate security concerns. However, it's always important to carefully review any changes to an application, especially those that involve data manipulation or loading, to ensure that they do not introduce any unintended security vulnerabilities. Files Changed:
Code AnalysisWe ran |
DryRun Security SummaryThe GitHub Actions workflow updates sample data for DefectDojo by automatically creating a pull request with updated data, while considering potential security implications such as hardcoded credentials and ensuring no sensitive information is exposed. Expand for full summarySummary: The code changes in this pull request are related to a GitHub Actions workflow that is responsible for updating the sample data for the DefectDojo application. The workflow can be triggered manually or on a schedule, and it performs the following tasks: checking out the code, updating the sample data file, configuring Git, creating a new branch with the updated data, and creating a pull request to merge the changes into the From an application security perspective, there are a few points to consider. First, the workflow uses hardcoded Git user name and email values, which could be a security concern if these credentials were to be compromised. It's generally recommended to use environment variables or secrets to store sensitive information like this. Second, the workflow uses the Files Changed:
Code AnalysisWe ran |
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.
Approved
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.
Neat!
The data in the sample data fixture is super old, and needs to be updated. This PR adds a new binary to slide the dates of all objects forward based on the most recent date in the fixture vs today. So for example, the latest date in this fixture file was in October 2021. This is a little over three years ago, so the binary will slide all dates in the file roughly three years forward
The GHA is set to run quarterly and open up a new PR to be reviewed with the changes outlined above
[sc-9788]