-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add local analysis orchestration #49
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d3da181
docs: plan issue 32 orchestration work
seonghobae 28554f9
feat: add local analysis orchestration
seonghobae 0e9a12b
fix: harden orchestration contract handling
seonghobae b3b50c4
fix: tighten orchestration review feedback
seonghobae ca8e1b1
fix: resolve orchestration review gaps
seonghobae f708c01
fix: pin sbom generation tooling
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| fn main() { | ||
| tauri_build::build() | ||
| tauri_build::try_build( | ||
| tauri_build::Attributes::new().app_manifest( | ||
| tauri_build::AppManifest::new() | ||
| .commands(&["start_analysis_job", "get_analysis_job_status"]), | ||
| ), | ||
| ) | ||
| .expect("failed to build tauri application manifest"); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "$schema": "../gen/schemas/desktop-schema.json", | ||
| "identifier": "main-capability", | ||
| "description": "Capability for the main BandScope window to use the analysis orchestration commands.", | ||
| "windows": ["main"], | ||
| "permissions": [ | ||
| "core:default", | ||
| "allow-start-analysis-job", | ||
| "allow-get-analysis-job-status" | ||
| ] | ||
| } |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"main-capability":{"identifier":"main-capability","description":"Capability for the main BandScope window to use the analysis orchestration commands.","local":true,"windows":["main"],"permissions":["core:default","allow-start-analysis-job","allow-get-analysis-job-status"]}} |
2,268 changes: 2,268 additions & 0 deletions
2,268
apps/desktop/src-tauri/gen/schemas/desktop-schema.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,268 changes: 2,268 additions & 0 deletions
2,268
apps/desktop/src-tauri/gen/schemas/macOS-schema.json
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
apps/desktop/src-tauri/permissions/autogenerated/get_analysis_job_status.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Automatically generated - DO NOT EDIT! | ||
|
|
||
| [[permission]] | ||
| identifier = "allow-get-analysis-job-status" | ||
| description = "Enables the get_analysis_job_status command without any pre-configured scope." | ||
| commands.allow = ["get_analysis_job_status"] | ||
|
|
||
| [[permission]] | ||
| identifier = "deny-get-analysis-job-status" | ||
| description = "Denies the get_analysis_job_status command without any pre-configured scope." | ||
| commands.deny = ["get_analysis_job_status"] |
11 changes: 11 additions & 0 deletions
11
apps/desktop/src-tauri/permissions/autogenerated/start_analysis_job.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Automatically generated - DO NOT EDIT! | ||
|
|
||
| [[permission]] | ||
| identifier = "allow-start-analysis-job" | ||
| description = "Enables the start_analysis_job command without any pre-configured scope." | ||
| commands.allow = ["start_analysis_job"] | ||
|
|
||
| [[permission]] | ||
| identifier = "deny-start-analysis-job" | ||
| description = "Denies the start_analysis_job command without any pre-configured scope." | ||
| commands.deny = ["start_analysis_job"] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Syft v1.20.0 release checksum sha256💡 Result:
Anchore Syft v1.20.0 publishes per-artifact SHA256 sums in the GitHub release asset
syft_1.20.0_checksums.txton the v1.20.0 release page. [1]To get the SHA256 for the specific binary you downloaded (linux/windows/darwin + arch), download that checksums file and match the filename:
(Anchore’s install docs also point to downloading artifacts from the GitHub releases page.) [2]
If you tell me which exact asset filename you need (e.g.,
syft_1.20.0_linux_amd64.tar.gzvssyft_1.20.0_windows_amd64.zip), I can help you extract the right line format to look for.References: [1] (github.com) [2] (oss.anchore.com)
Citations:
🌐 Web query:
Syft latest version 2024 2025 current release💡 Result:
Sources: [1] anchore/syft GitHub repo (latest release badge), [2] anchore/syft GitHub release v1.39.0 page, [3] Chocolatey bot test log showing syft 1.39.0 on 2025-12-23, [4] Anchore Community announcement for v1.18.0.
🌐 Web query:
Syft v1.20.0 security vulnerability CVE💡 Result:
Syft v1.20.0 does not appear to have any Syft-specific CVEs affecting that release line; the only CVE currently listed in the anchore/syft GitHub Security Advisories is:
SYFT_ATTEST_PASSWORDis set; affected:>= v0.69.0and< v0.70.0; patched in:v0.70.0—so Syft v1.20.0 is not in the affected range. [1][2][3]Sources: [1] GitHub advisory, [2] GitHub security overview, [3] NVD entry.
🏁 Script executed:
Repository: seonghobae/bandscope
Length of output: 2064
보안 위험: 다운로드된 바이너리에 대한 체크섬 검증 누락
외부 바이너리를 직접 다운로드하여 실행하는 경우, 반드시 SHA-256 체크섬을 검증해야 합니다. 현재 구현은 다운로드가 변조되었을 경우 악성 코드가 CI에서 실행될 수 있는 공급망 공격에 취약합니다.
Syft는 GitHub 릴리스 페이지에서
syft_1.20.0_checksums.txt파일로 각 아티팩트의 SHA256 체크섬을 제공합니다. 다음과 같이 검증을 추가하세요:🛡️ 체크섬 검증 추가
- name: Install Syft run: | curl -sSfL -o "$RUNNER_TEMP/syft.tar.gz" "https://github.com/anchore/syft/releases/download/v1.20.0/syft_1.20.0_linux_amd64.tar.gz" + curl -sSfL -o "$RUNNER_TEMP/syft_checksums.txt" "https://github.com/anchore/syft/releases/download/v1.20.0/syft_1.20.0_checksums.txt" + grep "syft_1.20.0_linux_amd64.tar.gz" "$RUNNER_TEMP/syft_checksums.txt" | sha256sum -c - tar -xzf "$RUNNER_TEMP/syft.tar.gz" -C "$RUNNER_TEMP" syft추가로, Syft v1.20.0은 2024년 버전으로 현재(2026년 3월) 최신 버전 v1.42.2에서 크게 뒤떨어져 있습니다. 최신 버전으로의 업그레이드도 검토하세요.
🤖 Prompt for AI Agents