fixing versions for gh releases #2269
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!2269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/2269/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: #1695
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/1695
Original created: 2025-10-04T05:52:05Z
Original updated: 2025-10-04T06:30:33Z
Original head: carverauto/serviceradar:chore/github_release_updates
Original base: main
Original merged: 2025-10-04T06:30:30Z by @mfreeman451
PR Type
Enhancement
Description
Automated GitHub release workflow with Bazel integration
Version-aware package naming for Debian/RPM assets
Release helper scripts for changelog extraction
Enhanced runfile resolution with Bazel support
Diagram Walkthrough
File Walkthrough
4 files
Enhanced package publishing with version stampingNew release preparation scriptChangelog extraction utilityAutomated release workflow with Bazel2 files
Added changelog with release notesUpdated release documentation2 files
Updated version to 1.0.53-pre14Added Bazel dependency for publish tool2 files
Added Bazel rules_go dependencyUpdated dependency checksumsImported GitHub PR comment.
Original author: @qodo-code-review[bot]
Original URL: https://github.com/carverauto/serviceradar/pull/1695#issuecomment-3367932949
Original created: 2025-10-04T05:53:07Z
PR Compliance Guide 🔍
Below is a summary of compliance checks for this PR:
Fragile git parsing
Description: The script parses git status output and extracts file paths using fixed substring slicing
(
file=${entry:3}), which can mis-handle filenames with status codes or spaces and lead tounintended behavior; use
git status --porcelain -zwith null-delimited parsing instead.cut-release.sh [82-109]
Referred Code
Secret handling risk
Description: The workflow writes a BuildBuddy API key to
.bazelrc.remote; if the workspace is uploadedor artifacts cached, there is a risk of inadvertent secret exposure unless the file is
protected and cleaned—ensure the file is not persisted to artifacts or logs.
release.yml [70-75]
Referred Code
Input validation risk
Description: Upload name derivation enforces specific filename patterns for .deb/.rpm and returns
errors for unexpected formats; if input paths are user-influenced, this could cause denial
of service in automation—validate inputs upstream or hardcode manifest to trusted files.
publish_packages.go [641-666]
Referred Code
🎫 No ticket provided
Codebase context is not defined
Follow the guide to enable codebase context checks.
No custom compliance provided
Follow the guide to enable custom compliance check.
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/1695#issuecomment-3367933450
Original created: 2025-10-04T05:54:12Z
PR Code Suggestions ✨
Explore these optional code suggestions:
Docker image publishing is missing
The new release workflow omits the previous functionality of building and
pushing Docker images. The suggestion is to re-add this step to the workflow to
avoid a regression, as the current implementation only publishes Debian and RPM
packages.
Examples:
.github/workflows/release.yml [58-196]
Solution Walkthrough:
Before:
After:
Suggestion importance[1-10]: 9
__
Why: The suggestion correctly identifies that the new workflow omits the Docker image publishing step, which was part of the previous release process, representing a significant regression.
Improve parsing of git status
Improve the robustness of parsing
git status --porcelainoutput by usingawktoextract filenames, which better handles different git statuses.
scripts/cut-release.sh [93-109]
Suggestion importance[1-10]: 5
__
Why: The suggestion correctly identifies that parsing
git status --porcelainwith a fixed-offset substring is brittle, but the proposedawksolution is also flawed for renames and filenames with spaces.