Back to all reviewers

Automate sensitive CI artifacts

bazelbuild/bazel
Based on 2 comments
Other

Large files and security-sensitive artifacts should be automatically generated in CI/CD pipelines rather than manually committed to version control. This reduces security risks from potentially malicious content and ensures artifacts stay current with the codebase.

CI/CD Other

Reviewer Prompt

Large files and security-sensitive artifacts should be automatically generated in CI/CD pipelines rather than manually committed to version control. This reduces security risks from potentially malicious content and ensures artifacts stay current with the codebase.

For large profile files or binary artifacts, implement automated generation through CI jobs or release pipelines:

# Instead of committing large profile files directly
# Use CI to regenerate profiles automatically
def regenerate_profile():
    # Run profiling in controlled CI environment
    bazel run //tools:profile_generator
    # Output profile as build artifact

Additionally, follow organizational policies for dependency placement. Files that could create bundling dependencies should be placed in appropriate directories (like tools/ instead of third_party/) and explicitly documented:

# Move sensitive configs to policy-compliant locations
# tools/proguard/config.proguard instead of third_party/
# Add to exclude lists to document the choice
exclude = ["tools/proguard/config.proguard"]

This approach ensures CI/CD security, maintains compliance with organizational policies, and keeps sensitive artifacts synchronized with code changes through automation.

2
Comments Analyzed
Other
Primary Language
CI/CD
Category

Source Discussions