@postman-cs/onboarding-repo-sync 2.10.3 → 2.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -181,7 +181,7 @@ with:
181
181
  | `environments-json` | JSON array of environment slugs to create or update. | no | `["prod"]` |
182
182
  | `git-provider` | Git provider override ('github', 'gitlab', 'bitbucket', 'azure-devops'). Auto-detected from environment when omitted. | no | |
183
183
  | `ado-token` | Azure DevOps personal access token or system token used to push commits in Azure Pipelines. Defaults to SYSTEM_ACCESSTOKEN when available. | no | |
184
- | `repo-url` | Explicit repository URL (GitHub, GitLab, or Azure DevOps). Defaults to the URL inferred from runner environment when omitted. | no | |
184
+ | `repo-url` | Explicit repository URL (GitHub, GitLab, or Azure DevOps). Defaults to the URL inferred from runner environment when omitted. For commit-and-push it must identify the checked-out origin. | no | |
185
185
  | `workspace-link-enabled` | Enable workspace linking. | no | `true` |
186
186
  | `environment-sync-enabled` | Enable association of Postman environments to system environments. | no | `true` |
187
187
  | `system-env-map-json` | JSON map of environment slug to system environment id. | no | `{}` |
@@ -197,7 +197,7 @@ with:
197
197
  | `team-id` | Postman team ID resolved by postman-resolve-service-token-action. Primary team scope for all downstream actions; included as x-entity-team-id in org-mode Bifrost calls. Falls back to POSTMAN_TEAM_ID when omitted. Set explicitly for org-mode teams. | no | `""` |
198
198
  | `secrets-resolver` | Cloud secret store the generated environments seed credential slots for: none (default, no secret-store variables are added), aws (AWS Secrets Manager), azure (Azure Key Vault), or gcp (Google Secret Manager). Must match the secrets-resolver value passed to the bootstrap and smoke-flow actions. | no | `none` |
199
199
  | `credential-preflight` | Credential identity preflight policy. warn (default) logs a note and continues when postman-api-key and postman-access-token resolve to different parent orgs; enforce fails the run on that condition before any workspace is created. Both modes warn when postman-access-token is not a service-account token. | no | `warn` |
200
- | `branch-strategy` | Branch-aware sync strategy. legacy (default) keeps branch-blind behavior; publish-gate restricts canonical writes to the canonical branch and skips repo-sync on other branches; preview additionally maintains suffixed per-branch preview asset sets. | no | `legacy` |
200
+ | `branch-strategy` | Branch-aware sync strategy. legacy (default) keeps branch-blind behavior for non-fork runs; fork PRs are always gated. publish-gate restricts canonical writes to the canonical branch and skips repo-sync on other branches; preview additionally maintains suffixed per-branch preview asset sets. | no | `legacy` |
201
201
  | `canonical-branch` | Explicit canonical branch (the sole writer of canonical assets and tracked state). Defaults to the provider-resolved default branch; required on providers without a default-branch variable (Bitbucket, Azure DevOps) when branch-strategy is not legacy. | no | |
202
202
  | `channels` | Comma-separated channel map for long-lived promotion branches, e.g. "develop=DEV, staging=STAGE, release/*=RC". Channel branches maintain prefix-named parallel asset sets and never mutate canonical assets. | no | |
203
203
  | `preview-ttl` | Sliding TTL in days for preview asset sets (refreshed on every successful preview sync; the retention contract of last resort when no provider credential is available for branch-existence checks). | no | `30` |
@@ -232,7 +232,7 @@ with:
232
232
  | `monitor-id` | Created or reused smoke monitor ID. |
233
233
  | `repo-sync-summary-json` | JSON summary of repo materialization and workspace sync outputs. |
234
234
  | `commit-sha` | Commit SHA produced by repo-write-mode, if any. |
235
- | `sync-status` | Branch-aware sync status: synced, skipped-branch-gate, or empty under branch-strategy legacy. |
235
+ | `sync-status` | Branch-aware sync status: synced, skipped-branch-gate, or empty under a non-fork branch-strategy legacy run. |
236
236
  | `branch-decision` | Serialized BranchDecision JSON for downstream actions (also exported as POSTMAN_BRANCH_DECISION). |
237
237
  | `spec-version-tag` | Native Spec Hub version tag created after successful canonical repo-sync finalization. |
238
238
  | `spec-version-url` | Read-only URL for the tagged Spec Hub snapshot. |
@@ -317,7 +317,7 @@ When CI workflow generation is enabled, the committed GitHub Actions workflow ru
317
317
 
318
318
  A matching Azure DevOps Pipelines template is generated for Azure DevOps repositories. With `ci-runner-os: windows`, each Smoke and Contract CLI invocation forwards `RESPONSE_TIME_THRESHOLD` with `--env-var`; the Azure variable is used when set and otherwise defaults to `10000` milliseconds. GitHub Actions/Linux generation keeps its seeded `2000` millisecond threshold. The assertions those collections execute are generated upstream: the per-check reference is in [postman-bootstrap-action's Generated Assertions](https://github.com/postman-cs/postman-bootstrap-action/blob/main/docs/generated-assertions.md), and the curated Smoke journey scripts are in [postman-smoke-flow-action's Generated Test Scripts](https://github.com/postman-cs/postman-smoke-flow-action/blob/main/docs/generated-tests.md).
319
319
 
320
- For `commit-and-push`, the push target is resolved from `current-ref`, then `GITHUB_HEAD_REF`, then `GITHUB_REF_NAME`. Pull request merge refs are normalized to the PR head branch.
320
+ For `commit-and-push`, the push target is resolved from `current-ref`, then `GITHUB_HEAD_REF`, then `GITHUB_REF_NAME`. Pull request merge refs are normalized to the PR head branch, but fork pull requests are always gated before credentials or repository writes are attempted. An explicit `repo-url` must identify the checked-out `origin`; the action will not redirect a push credential to a different host or repository.
321
321
 
322
322
  Mocks and monitors: when `baseline-collection-id`, `workspace-id`, and at least one environment are available, the action creates or reuses a mock server. When `smoke-collection-id` is also available, it creates or reuses a cloud smoke monitor unless `monitor-type: cli` is set. With an empty `monitor-cron`, a new cloud monitor is created disabled and triggered once per workflow invocation.
323
323
 
package/action.yml CHANGED
@@ -86,7 +86,7 @@ inputs:
86
86
  description: Azure DevOps personal access token or system token used to push commits in Azure Pipelines. Defaults to SYSTEM_ACCESSTOKEN when available.
87
87
  required: false
88
88
  repo-url:
89
- description: 'Explicit repository URL (GitHub, GitLab, or Azure DevOps). Defaults to the URL inferred from runner environment when omitted.'
89
+ description: 'Explicit repository URL (GitHub, GitLab, or Azure DevOps). Defaults to the URL inferred from runner environment when omitted. For commit-and-push it must identify the checked-out origin.'
90
90
  required: false
91
91
  integration-backend:
92
92
  description: Advanced/internal. Integration backend for managed workspace linking and environment sync; leave unset to use the default.
@@ -149,7 +149,7 @@ inputs:
149
149
  required: false
150
150
  default: warn
151
151
  branch-strategy:
152
- description: "Branch-aware sync strategy. legacy (default) keeps branch-blind behavior; publish-gate restricts canonical writes to the canonical branch and skips repo-sync on other branches; preview additionally maintains suffixed per-branch preview asset sets."
152
+ description: "Branch-aware sync strategy. legacy (default) keeps branch-blind behavior for non-fork runs; fork PRs are always gated. publish-gate restricts canonical writes to the canonical branch and skips repo-sync on other branches; preview additionally maintains suffixed per-branch preview asset sets."
153
153
  required: false
154
154
  default: legacy
155
155
  canonical-branch:
@@ -233,7 +233,7 @@ outputs:
233
233
  commit-sha:
234
234
  description: Commit SHA produced by repo-write-mode, if any.
235
235
  sync-status:
236
- description: "Branch-aware sync status: synced, skipped-branch-gate, or empty under branch-strategy legacy."
236
+ description: "Branch-aware sync status: synced, skipped-branch-gate, or empty under a non-fork branch-strategy legacy run."
237
237
  branch-decision:
238
238
  description: Serialized BranchDecision JSON for downstream actions (also exported as POSTMAN_BRANCH_DECISION).
239
239
  spec-version-tag: