-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
enhancement: Gitleaks schema improvements #3675
enhancement: Gitleaks schema improvements #3675
Conversation
Were they added manually? Usually they are generated by a script, |
Yes I added them manually. I was just going off what @nvuillam said in the linked issue that was raised a while back! |
The worse is that at some point when the command will be rerun it will get replaced by the actual contents from the descriptor. |
Apologies @echoix, I should have checked in more detail and wasn’t aware the schema was created off the back of the descriptors as well. Tom |
You can run in your branch to see if the contents are different. Maybe it's the same? Maybe the full doc rebuild is done near releases, were these fields new? |
Hi @echoix, These variables are from a previous release and don't get added via the While I considered trying to add that functionality, it would require careful planning and testing to ensure it properly handles different variable types and doesn't cause any unintended issues or conflicts with existing variables. For now, I've reordered these missing variables to match the order that the Does this approach sound reasonable? I'm open to any other suggestions you might have for dealing with these missed variables and keeping the schema in sync going forward. Tom |
Yes good |
It would be something very useful to have implemented in the docs generation, jsonschema docs generation or even normal build, as updating them manually is error prone (ie: forget to do it), as you found out recently. I'm grateful for your work, but I'm blocked with the current CI that fails and can't fix them all at once. Nicolas would be able to force the merge of these PRs, but I can't just by myself. |
I’ve been merging your PRs one by one, resolving the conflicts on the changelog as we waited too long to merge. |
Indeed, thanks @TommyE123 for your great latest contributions, and thanks @echoix for all your validation & guidance work ❤️ |
GitLeaks Add missing schema properties
Fixes #3064
Context:
Three schema references were missing for
Gitleaks
which causesYAML_V8R
to fail.•
REPOSITORY_GITLEAKS_PR_COMMITS_SCAN
•
REPOSITORY_GITLEAKS_PR_SOURCE_SHA
•
REPOSITORY_GITLEAKS_PR_TARGET_SHA
Testing:
Shows they were missing from the schema
If there are any issues or concerns, please let me know, and I will address them promptly.
Thank you for reviewing this PR and I look forward to your feedback.
Tom