Bind deployment trigger and commit identity

This commit is contained in:
Meta Vens 2026-07-13 05:12:09 +01:00
commit 2bc6ec6be2
7 changed files with 22 additions and 5 deletions

View file

@ -247,6 +247,8 @@ fn run_smoke(args: Args) -> Result<Value> {
"aftercare_audit = \"gamecult.idunn.deployment_aftercare_audit.v0\"",
)?;
require_text(&request_text, "requires_deployment_script_ref = true")?;
require_text(&request_text, "requires_watched_ref = true")?;
require_text(&request_text, "requires_source_commit_sha = true")?;
require_text(&request_text, "requires_script_hash = true")?;
require_text(&request_text, "requires_script_review_ref = true")?;
require_text(&request_text, "requires_host_access_policy_ref = true")?;

View file

@ -5586,7 +5586,8 @@ fn derive_repo_deployment_request_plan(
String::new(),
"[deployment_packet]".to_string(),
"requires_target_environment = true".to_string(),
"requires_git_ref_or_branch = true".to_string(),
"requires_watched_ref = true".to_string(),
"requires_source_commit_sha = true".to_string(),
"requires_deployment_script_ref = true".to_string(),
"requires_script_hash = true".to_string(),
"requires_script_review_ref = true".to_string(),
@ -13749,7 +13750,8 @@ idunn_deployment = "gamecult.idunn.deployment_receipt.v0"
aftercare_audit = "gamecult.idunn.deployment_aftercare_audit.v0"
[deployment_packet]
requires_target_environment = true
requires_git_ref_or_branch = true
requires_watched_ref = true
requires_source_commit_sha = true
requires_deployment_script_ref = true
requires_script_hash = true
requires_script_review_ref = true

View file

@ -479,7 +479,8 @@ pub(super) struct RepoDeploymentRequestReceipts {
#[derive(Debug, Deserialize)]
pub(super) struct RepoDeploymentRequestPacket {
pub(super) requires_target_environment: bool,
pub(super) requires_git_ref_or_branch: bool,
pub(super) requires_watched_ref: bool,
pub(super) requires_source_commit_sha: bool,
pub(super) requires_deployment_script_ref: bool,
pub(super) requires_script_hash: bool,
pub(super) requires_script_review_ref: bool,
@ -547,7 +548,8 @@ impl RepoDeploymentRequest {
pub(super) fn has_packet_contract(&self) -> bool {
let value = &self.deployment_packet;
value.requires_target_environment
&& value.requires_git_ref_or_branch
&& value.requires_watched_ref
&& value.requires_source_commit_sha
&& value.requires_deployment_script_ref
&& value.requires_script_hash
&& value.requires_script_review_ref