-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] Add CredScan static security analysis #4590
Conversation
Should the new job fail when it finds something wrong? Right now it finds passwords in our docker files but finishes successfully after that.
|
Also, could you please clarify why do you think LightGBM repo needs this analysis? It seems that leaving credentials in a source code is not something that can happen in our source code. |
These static security analysis are required by the open source policy of Microsoft. But we can choose not to add these analysis into the ci job of master branch. Instead, we may keep them in a separate branch, and re-open the PR to get the analysis results before each release. Since we only need the analysis results. |
Ah, I see. OK.
I think it should depend on a required time for this job. If it's insignificant, we can run this job for each commit. Otherwise, we can add it to our optional checks triggered by comments similarly to how we regenerate configure file in the R-package or run long valgrind tests: LightGBM/.github/workflows/triggering_comments.yml Lines 20 to 42 in 74c7904
And then add it to our release checklist (#4169 (comment)). I believe it will be better than
|
@StrikerRUS Oh, thank you. Adding these checks as optional items is enough. That's a good suggestion. I will add it there. |
@shiyu1994 I can help with adding new ChatOps command. But new job should be run at GitHub Actions, not at Azure Pipelines. |
What is the status of this PR? @shiyu1994 is there something you need help with? |
@StrikerRUS @jameslamb Thanks, I'll move these new static analysis jobs to ci actions by updating this PR. |
@shiyu1994 it's been a few months without activity on this PR. Can it be closed? |
Yes. I think it is not necessary to include this in the repo. I will manually do the static check when needed. Thanks! |
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Add CredScan static security analysis. This is a part of the original pull request #4585. We separate each task into a standalone PR for better reviewability.