8000 Closes #5 by embedding default files from the filesystem into the com… by scottbrown · Pull Request #6 · scottbrown/pulse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Closes #5 by embedding default files from the filesystem into the com… #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

scottbrown
Copy link
Owner

…piled binary

@scottbrown scottbrown requested a review from Copilot April 29, 2025 22:51
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR closes #5 by embedding default configuration and metrics files into the compiled binary, replacing inline string literals for default file creation. Key changes include:

  • Adding new YAML files under defaults/data/metrics and defaults/config.
  • Replacing file creation logic in config.go with a helper that copies embedded defaults.
  • Organizing default levers and metrics configuration via embedded FS.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
defaults/data/metrics/infra_sec.yaml Adds default infrastructure security metrics data.
defaults/data/metrics/compliance.yaml Adds default compliance metrics data.
defaults/data/metrics/app_sec.yaml Adds default application security metrics data.
defaults/config/metrics.yaml Introduces metrics configuration with KPI and KRI scoring bands.
defaults/config/levers.yaml Introduces lever thresholds and weights configuration.
config.go Refactors default file creation to use the embedded file system.

@scottbrown scottbrown merged commit 56c0c03 into main Apr 29, 2025
3 checks passed
@scottbrown scottbrown deleted the issue-5 branch April 29, 2025 22:53
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.

1 participant
0