Fix industry-specific rego files for OPA check and Regal lint compliance#13
Merged
Conversation
…licy - Removed redundant check for input.safety_assessment.hara_analysis existence - The subsequent property access already validates the object exists - Resolves Regal lint 'redundant-existence-check' violation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves issues with industry-specific rego files to ensure they pass both OPA check and Regal lint validation.
Changes Made
🔧 Package Naming Fixes
industry_specific.education.v1.*instead ofeducation.v1.*🚗 Automotive Vehicle Safety Policy
:=instead of=)🏥 Healthcare Diagnostic Safety Policy
📝 Code Quality Improvements
opa fmtformatting to ensure consistent code styleValidation Results
✅ OPA Check: PASSING (0 errors)
✅ Regal Lint: PASSING (0 violations)
✅ Tests: Automotive tests passing (2/2)
Files Modified
Education Package Name Fixes
industry_specific/education/v1/academic_integrity/ai_plagiarism_detection.regoindustry_specific/education/v1/academic_integrity/acceptable_ai_use.regoindustry_specific/education/v1/assessment_and_evaluation/human_in_the_loop_grading.regoindustry_specific/education/v1/assessment_and_evaluation/responsible_ai_proctoring.regoindustry_specific/education/v1/fairness_and_equity/digital_divide_mitigation.regoindustry_specific/education/v1/fairness_and_equity/equitable_admissions_systems.regoindustry_specific/education/v1/fairness_and_equity/unbiased_automated_grading.regoindustry_specific/education/v1/safe_learning_environment/age_appropriate_content.regoindustry_specific/education/v1/safe_learning_environment/instructional_tool_vetting.regoindustry_specific/education/v1/student_data_privacy/coppa_compliance.regoindustry_specific/education/v1/student_data_privacy/data_minimization.regoindustry_specific/education/v1/student_data_privacy/ferpa_compliance.regoAutomotive Policy Fixes
industry_specific/automotive/v1/vehicle_safety/vehicle_safety.regoindustry_specific/automotive/v1/vehicle_safety/vehicle_safety_test.regoHealthcare Policy Fixes
industry_specific/healthcare/v1/diagnostic_safety/diagnostic_safety.regoImpact
This resolves the issues mentioned in the handoff session notes and ensures the CI pipeline will pass the required
opa-checksstatus check.Pull Request opened by Augment Code with guidance from the PR author