Chore/fixing pub pkgs #2450
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!2450
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2450/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #1982
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1982
Original created: 2025-11-23T14:58:52Z
Original updated: 2025-11-23T15:00:17Z
Original head: carverauto/serviceradar:chore/fixing_pub_pkgs
Original base: main
Original merged: 2025-11-23T15:00:11Z by @mfreeman451
User description
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
PR Type
Enhancement, Bug fix
Description
Add rpmbuild toolchain detection and installation in release workflow
Configure local packaging execution to ensure rpmbuild availability
Disable remote cache/exec for packaging jobs to run locally
Create new linux_pkg_local platform for rules_pkg rpm compatibility
Diagram Walkthrough
File Walkthrough
release.yml
Configure local rpmbuild execution in release workflow.github/workflows/release.yml
clean
with explicit platform and rpmbuild availability flag
BUILD.bazel
Add linux_pkg_local platform for local packagingbuild/platforms/BUILD.bazel
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1982#issuecomment-3568041384
Original created: 2025-11-23T14:59:17Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Unpinned package install
Description: Installing system packages with sudo in CI without pinning versions or verifying package
integrity can lead to supply-chain risks or unexpected breakage if upstream packages
change (e.g., 'apt-get install -y rpm rpm2cpio' without version pinning or checksum
verification).
release.yml [75-81]
Referred Code
Build config bypass
Description: Overriding Bazel remote cache/executor via a generated '.bazelrc.remote' inside CI may
allow unintended configuration persistence across subsequent steps in the same workspace,
potentially bypassing intended remote policies and weakening hermeticity and
reproducibility.
release.yml [223-226]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
Generic: Meaningful Naming and Self-Documenting Code
Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting
Status: Passed
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation
Status: Passed
Generic: Secure Logging Practices
Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.
Status: Passed
Generic: Security-First Input Validation and Data Handling
Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities
Status: Passed
Generic: Comprehensive Audit Trails
Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.
Status:
Missing audit logs: The newly added workflow steps perform critical build/publish actions without adding any
audit logging of who triggered actions or their outcomes beyond default GitHub Actions
logs, which may be acceptable but cannot be verified from this diff.
Referred Code
Generic: Secure Error Handling
Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.
Status:
Error detail exposure: The workflow echoes tool versions and prints messages to stderr; while typical for CI, it
is unclear whether any sensitive internal details could be exposed in public logs,
requiring human verification.
Referred Code
Compliance status legend
🟢 - Fully Compliant🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label
Imported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1982#issuecomment-3568042288
Original created: 2025-11-23T15:00:15Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Use a container for packaging
Instead of installing
rpmbuildon the CI runner, run the packaging step in aDocker container with
rpmbuildpre-installed. This improves reproducibility andsimplifies the workflow by removing environment setup steps.
Examples:
.github/workflows/release.yml [73-274]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 8
__
Why: The suggestion proposes a superior architectural pattern for CI by using a container, which improves reproducibility and avoids modifying the runner's state, directly addressing the core changes in the PR.
Use explicit flags to disable remote
Replace the non-standard
--config=no_remoteflag with explicit--remote_executor=and--remote_cache=flags in thebazel runcommand to clearlydisable remote execution.
.github/workflows/release.yml [266-274]
Suggestion importance[1-10]: 8
__
Why: The suggestion correctly identifies that
--config=no_remoteis non-standard and proposes replacing it with explicit flags, which makes the command self-contained, clearer, and removes redundancy with the.bazelrc.remotefile creation.Pass Bazel flags directly instead
Remove the step that creates
.bazelrc.remoteand instead pass the Bazelconfiguration flags directly to the
bazel runcommand to avoid side effects..github/workflows/release.yml [219-226]
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that creating a
.bazelrc.remotefile can have unintended side effects on subsequent steps, and passing flags directly to the command is a more robust and maintainable approach.