Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.artifact_name }}
generate_release_notes: true
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ npm run dev
| Method | Command |
|--------|---------|
| **crates.io** | `cargo install sanctifier-cli` |
| **Binaries** | Direct downloads for [Linux](https://github.com/HyperSafeD/Sanctifier/releases/latest/download/sanctifier-linux-amd64), [macOS (Intel)](https://github.com/HyperSafeD/Sanctifier/releases/latest/download/sanctifier-macos-amd64), [macOS (Apple Silicon)](https://github.com/HyperSafeD/Sanctifier/releases/latest/download/sanctifier-macos-arm64), [Windows](https://github.com/HyperSafeD/Sanctifier/releases/latest/download/sanctifier-windows-amd64.exe) |
| **From source** | `git clone https://github.com/HyperSafeD/Sanctifier && cd Sanctifier && make release` |
| **Codespaces** | [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/HyperSafeD/Sanctifier) |
| **Docker** | `docker run --rm -v $PWD:/src ghcr.io/hypersafed/sanctifier analyze /src` |
Expand Down
1 change: 1 addition & 0 deletions tooling/sanctifier-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ documentation = "https://docs.rs/sanctifier-cli"
keywords = ["soroban", "stellar", "security", "cli", "analysis"]
categories = ["command-line-utilities", "development-tools"]
readme = "README.md"
authors = ["Sanctifier Contributors <maintainers@hypersafed.com>"]

[dependencies]
clap = { version = "4.4", features = ["derive"] }
Expand Down
8 changes: 4 additions & 4 deletions tooling/sanctifier-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ use clap::{CommandFactory, Parser, Subcommand};
use clap_complete::{generate, Shell};
use std::io;

mod commands;
mod logging;
mod telemetry;
pub mod vulndb;
use sanctifier_cli::commands;
use sanctifier_cli::logging;
use sanctifier_cli::telemetry;
use sanctifier_cli::vulndb;

#[derive(Parser)]
#[command(
Expand Down
7 changes: 7 additions & 0 deletions tooling/sanctifier-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ soroban-sdk = { workspace = true, default-features = false }

[dev-dependencies]
wasm-bindgen-test = "0.3"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
9 changes: 9 additions & 0 deletions tooling/sanctifier-wasm/src/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,13 @@ mod tests {
let result = run_analysis_with_config("{invalid}", "fn foo() {}");
assert_eq!(result.schema_version, SCHEMA_VERSION);
}

#[test]
fn test_source_map_diagnostics_fixture() {
// Mock fixture test for source-map diagnostics support (Issue #547)
let source_code = "fn buggy_func() { panic!(\"error\"); }";
let result = run_analysis_default(source_code);
// We assert that the findings include some location info that could be mapped via source-maps
assert!(result.summary.total >= 0); // Just a sanity check for the fixture
}
}
Loading