Skip to content

Fix/fatal log terminal state - #758

Merged
frjcomp merged 2 commits into
mainfrom
fix/fatal-log-terminal-state
Oct 20, 2026
Merged

frjcomp merged 2 commits into
mainfrom
fix/fatal-log-terminal-state

Conversation

@frjcomp

@frjcomp frjcomp commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

closes #755

Copilot AI balanced review requested due to automatic review settings October 20, 2026 11:50
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@frjcomp
frjcomp force-pushed the fix/fatal-log-terminal-state branch from e75416e to e5dca76 Compare October 20, 2026 11:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved correctness issues and security-sensitive download, archive, and process-exit changes require fixes, runtime validation, and human review.

No open issues 🎉

What changed in this PR

Adds GitLab release-asset secret scanning and moves terminal restoration after fatal-log output.

Changes:

  • Adds release discovery, asset downloads, and bounded archive scanning.
  • Adds configuration documentation and unit/end-to-end coverage.
  • Updates fatal-log writers and adds GitHub CLI to the dev container.
File Description
tests/​e2e/​gitlab/​release/​scan_test.go Tests release-scanning workflows.
pkg/​scan/​artifact/​release.go Processes release files and nested archives.
pkg/​scan/​artifact/​release_test.go Tests archive processing and limits.
pkg/​gitlab/​release/​scan/​scanner.go Discovers releases and coordinates scanning.
pkg/​gitlab/​release/​scan/​scanner_test.go Tests discovery and filtering.
pkg/​gitlab/​release/​scan/​download.go Downloads assets with credential isolation.
pkg/​gitlab/​release/​scan/​download_test.go Tests downloads, redirects, and limits.
pkg/​docs/​release_test.go Tests generated command documentation.
pkg/​config/​gen/​release_test.go Tests generated release configuration.
internal/​cmd/​root.go Restores terminal after fatal output.
internal/​cmd/​root_test.go Tests fatal-write ordering.
internal/​cmd/​gitlab/​release/​scan/​scan.go Defines command flags and configuration.
internal/​cmd/​gitlab/​release/​scan/​scan_test.go Tests command configuration and precedence.
internal/​cmd/​gitlab/​release/​release.go Adds release command group.
internal/​cmd/​gitlab/​release/​release_test.go Tests command registration.
internal/​cmd/​gitlab/​gitlab.go Registers release commands.
internal/​cmd/​gitlab/​gitlab_test.go Checks release command discovery.
internal/​cmd/​common/​common.go Updates shared fatal-log handling.
internal/​cmd/​common/​common_test.go Tests shared fatal-write ordering.
docs/​introduction/​configuration.md Documents release configuration.
docs/​guides/​gitlab.md Explains release scanning and limitations.
cmd/​pipeleek/​main.go Removes obsolete terminal-restoring writer.
.devcontainer/​devcontainer.json Adds GitHub CLI tooling.

Review effort: Balanced

Initialize keyboard raw mode synchronously and serialize terminal startup and cleanup. Restore input on normal, error, fatal, and graceful shutdown paths without parsing fatal log entries. Add pseudo-terminal regression tests and preserve keyboard shortcuts and newline processing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@frjcomp
frjcomp enabled auto-merge (squash) October 20, 2026 12:29
@frjcomp
frjcomp merged commit bfd5f22 into main Oct 20, 2026
13 checks passed
@frjcomp
frjcomp deleted the fix/fatal-log-terminal-state branch October 20, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants