Skip to content

Commit

Permalink
chore: update plugin versions in default policy files and config conv…
Browse files Browse the repository at this point in the history
…ersion code

Signed-off-by: jlanson <[email protected]>
  • Loading branch information
j-lanson committed Dec 20, 2024
1 parent 899a45b commit 91ffdb7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions config/Hipcheck.kdl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
plugin "mitre/activity" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/activity.kdl"
plugin "mitre/affiliation" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/affiliation.kdl"
plugin "mitre/activity" version="0.2.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/activity.kdl"
plugin "mitre/affiliation" version="0.2.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/affiliation.kdl"
plugin "mitre/binary" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/binary.kdl"
plugin "mitre/churn" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/churn.kdl"
plugin "mitre/entropy" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/entropy.kdl"
plugin "mitre/churn" version="0.2.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/churn.kdl"
plugin "mitre/entropy" version="0.2.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/entropy.kdl"
plugin "mitre/fuzz" version="0.1.1" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/fuzz.kdl"
plugin "mitre/review" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/review.kdl"
plugin "mitre/typo" version="0.1.0" manifest="https://hipcheck.mitre.org/dl/plugin/mitre/typo.kdl"
Expand Down
8 changes: 4 additions & 4 deletions config/local.Hipcheck.kdl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
plugins {
plugin "mitre/activity" version="0.1.0" manifest="plugins/activity/local-plugin.kdl"
plugin "mitre/affiliation" version="0.1.0" manifest="plugins/affiliation/local-plugin.kdl"
plugin "mitre/activity" version="0.2.0" manifest="plugins/activity/local-plugin.kdl"
plugin "mitre/affiliation" version="0.2.0" manifest="plugins/affiliation/local-plugin.kdl"
plugin "mitre/binary" version="0.1.0" manifest="plugins/binary/local-plugin.kdl"
plugin "mitre/churn" version="0.1.0" manifest="plugins/churn/local-plugin.kdl"
plugin "mitre/entropy" version="0.1.0" manifest="plugins/entropy/local-plugin.kdl"
plugin "mitre/churn" version="0.2.0" manifest="plugins/churn/local-plugin.kdl"
plugin "mitre/entropy" version="0.2.0" manifest="plugins/entropy/local-plugin.kdl"
plugin "mitre/fuzz" version="0.1.1" manifest="plugins/fuzz/local-plugin.kdl"
plugin "mitre/review" version="0.1.0" manifest="plugins/review/local-plugin.kdl"
plugin "mitre/typo" version="0.1.0" manifest="plugins/typo/local-plugin.kdl"
Expand Down
10 changes: 5 additions & 5 deletions hipcheck/src/policy/config_to_policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fn parse_activity(
// Add the plugin
let plugin = PolicyPlugin::new(
PolicyPluginName::new("mitre/activity").unwrap(),
PluginVersion::new(PLUGIN_VERSION.to_string()),
PluginVersion::new("0.2.0".to_string()),
Some(ManifestLocation::Url(
Url::parse("https://hipcheck.mitre.org/dl/plugin/mitre/activity.kdl").unwrap(),
)),
Expand Down Expand Up @@ -250,7 +250,7 @@ fn parse_identity(
// Add the plugin
let plugin = PolicyPlugin::new(
PolicyPluginName::new("mitre/identity").unwrap(),
PluginVersion::new(PLUGIN_VERSION.to_string()),
PluginVersion::new("0.2.0".to_string()),
Some(ManifestLocation::Url(
Url::parse("https://hipcheck.mitre.org/dl/plugin/mitre/identity.kdl").unwrap(),
)),
Expand Down Expand Up @@ -365,7 +365,7 @@ fn parse_affiliation(
// Add the plugin
let plugin = PolicyPlugin::new(
PolicyPluginName::new("mitre/affiliation").unwrap(),
PluginVersion::new(PLUGIN_VERSION.to_string()),
PluginVersion::new("0.2.0".to_string()),
Some(ManifestLocation::Url(
Url::parse("https://hipcheck.mitre.org/dl/plugin/mitre/affiliation.kdl").unwrap(),
)),
Expand Down Expand Up @@ -406,7 +406,7 @@ fn parse_churn(plugins: &mut PolicyPluginList, commit: &mut PolicyCategory, chur
// Add the plugin
let plugin = PolicyPlugin::new(
PolicyPluginName::new("mitre/churn").unwrap(),
PluginVersion::new(PLUGIN_VERSION.to_string()),
PluginVersion::new("0.2.0".to_string()),
Some(ManifestLocation::Url(
Url::parse("https://hipcheck.mitre.org/dl/plugin/mitre/churn.kdl").unwrap(),
)),
Expand Down Expand Up @@ -451,7 +451,7 @@ fn parse_entropy(
// Add the plugin
let plugin = PolicyPlugin::new(
PolicyPluginName::new("mitre/entropy").unwrap(),
PluginVersion::new(PLUGIN_VERSION.to_string()),
PluginVersion::new("0.2.0".to_string()),
Some(ManifestLocation::Url(
Url::parse("https://hipcheck.mitre.org/dl/plugin/mitre/entropy.kdl").unwrap(),
)),
Expand Down

0 comments on commit 91ffdb7

Please sign in to comment.