Skip to content

Commit

Permalink
chore: Makes changes needed for affiliation plugin to run
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Chernicoff committed Nov 1, 2024
1 parent 56dd7a7 commit 3c49d7b
Show file tree
Hide file tree
Showing 7 changed files with 453 additions and 174 deletions.
7 changes: 4 additions & 3 deletions config/Hipcheck.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
plugin "mitre/fuzz" version="0.1.0" manifest="./plugins/fuzz/plugin.kdl"
plugin "mitre/review" version="0.1.0" manifest="./plugins/review/plugin.kdl"
plugin "mitre/typo" version="0.1.0" manifest="./plugins/typo/plugin.kdl"
plugin "mitre/affiliation" version="0.1.0"
plugin "mitre/affiliation" version="0.1.0" manifest="./plugins/affiliation/plugin.kdl"
plugin "mitre/entropy" version="0.1.0"
plugin "mitre/churn" version="0.1.0" manifest="./plugins/churn/plugin.kdl"
}
Expand Down Expand Up @@ -34,8 +34,9 @@ analyze {
}

category "commit" {
analysis "mitre/affiliation" policy="(eq 0 (count $))" {
orgs-file "./config/Orgs.toml"
analysis "mitre/affiliation" {
orgs-file-path "./plugins/affiliation/test/example_orgs.kdl"
count-threshold 0
}

analysis "mitre/entropy" policy="(eq 0 (count (filter (gt 8.0) $)))" {
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/plugin/retrieval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use xz2::read::XzDecoder;
use super::get_current_arch;

/// The plugins currently are not delegated via the `plugin` system and are still part of `hipcheck` core
pub const MITRE_LEGACY_PLUGINS: [&str; 3] = ["activity", "entropy", "affiliation"];
pub const MITRE_LEGACY_PLUGINS: [&str; 2] = ["activity", "entropy"];

/// determine all of the plugins that need to be run and locate download them, if they do not exist
pub fn retrieve_plugins(
Expand Down
8 changes: 4 additions & 4 deletions plugins/affiliation/plugin.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name "affiliation"
version "0.1.0"
license "Apache-2.0"
entrypoint {
on arch="aarch64-apple-darwin" "./hc-mitre-affiliation"
on arch="x86_64-apple-darwin" "./hc-mitre-affiliation"
on arch="x86_64-unknown-linux-gnu" "./hc-mitre-affiliation"
on arch="x86_64-pc-windows-msvc" "./hc-mitre-affiliation"
on arch="aarch64-apple-darwin" "./target/debug/affiliation_sdk"
on arch="x86_64-apple-darwin" "./target/debug/affiliation_sdk"
on arch="x86_64-unknown-linux-gnu" "./target/debug/affiliation_sdk"
on arch="x86_64-pc-windows-msvc" "./target/debug/affiliation_sdk"
}

dependencies {
Expand Down
Loading

0 comments on commit 3c49d7b

Please sign in to comment.