mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 16:02:36 +00:00
fix(git-sync): run auto-pull as the admin who enabled it (#11121)
* fix(git-sync): run auto-pull as the admin who enabled it Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(git-sync): audit the admin grant fork pulls make Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: bump ee ref for the post-commit fork grant audit Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(git-sync): address review nits on the auto-pull stamp Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: update ee-repo-ref to ccada062c072d7b74894b63863728fd1ef9bdffd This commit updates the EE repository reference after PR #799 was merged in windmill-ee-private. Previous ee-repo-ref: 7cee30f0cf12721cba551cd754dc817444810470 New ee-repo-ref: ccada062c072d7b74894b63863728fd1ef9bdffd Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 5
windmill-internal-app[bot]
parent
082d897328
commit
69e6efd875
@@ -514,6 +514,11 @@ pub struct AutoPullSettings {
|
||||
pub last_synced_sha: std::collections::HashMap<String, String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub last_pull_status: Option<AutoPullStatus>,
|
||||
/// Email of the admin this repository's automatic pulls (its own and its forks')
|
||||
/// apply changes as: whoever last saved the settings with auto pull on. Stamped
|
||||
/// server-side, never taken from the client.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub enabled_by: Option<String>,
|
||||
}
|
||||
|
||||
// Manual Debug so the HMAC `webhook_secret` (even encrypted) never lands in logs.
|
||||
@@ -524,6 +529,7 @@ impl std::fmt::Debug for AutoPullSettings {
|
||||
.field("mode", &self.mode)
|
||||
.field("poll_interval_s", &self.poll_interval_s)
|
||||
.field("sync_forks", &self.sync_forks)
|
||||
.field("enabled_by", &self.enabled_by)
|
||||
.field("webhook_id", &self.webhook_id)
|
||||
.field(
|
||||
"webhook_secret",
|
||||
@@ -2709,6 +2715,7 @@ mod tests {
|
||||
webhook_secret: None,
|
||||
webhook_url: None,
|
||||
webhook_error: None,
|
||||
enabled_by: None,
|
||||
last_synced_sha: synced
|
||||
.iter()
|
||||
.map(|(r, s)| (r.to_string(), s.to_string()))
|
||||
|
||||
Reference in New Issue
Block a user