@postman-cs/onboarding-repo-sync 2.11.0 → 2.11.2

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
@@ -1,10 +1,10 @@
1
- # Postman Onboarding: Repo Sync
1
+ # Postman Enterprise Automation: Repo Sync
2
2
 
3
3
  [![CI](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml/badge.svg)](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/postman-cs/postman-repo-sync-action?sort=semver)](https://github.com/postman-cs/postman-repo-sync-action/releases) [![npm](https://img.shields.io/npm/v/%40postman-cs%2Fonboarding-repo-sync)](https://www.npmjs.com/package/@postman-cs/onboarding-repo-sync) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
4
 
5
5
  Exports Postman [collections](https://learning.postman.com/docs/use/use-collections/collections-schemas/) and [environments](https://learning.postman.com/docs/use/send-requests/variables/managing-environments/) into your repository and wires CI, [mock servers](https://learning.postman.com/docs/design-apis/mock-apis/set-up-mock-servers/), and [monitors](https://learning.postman.com/docs/monitoring-your-api/setting-up-monitor/) around them.
6
6
 
7
- Part of the [Postman API Onboarding suite](https://github.com/postman-cs/postman-api-onboarding-action); the composite action's README has the full action-picker table.
7
+ Part of the [Postman Enterprise Automation Suite](https://github.com/postman-cs/postman-api-onboarding-action); the composite action's README has the full action-picker table.
8
8
 
9
9
  - [Usage](#usage)
10
10
  - [Examples](#examples)
@@ -201,7 +201,7 @@ with:
201
201
  | `current-ref` | Explicit ref override for push-changes when the checkout is detached. | no | |
202
202
  | `committer-name` | Git committer name for sync commits. | no | `Postman` |
203
203
  | `committer-email` | Git committer email for sync commits. | no | `support@postman.com` |
204
- | `postman-api-key` | Postman API key (PMAK). Used only to mint/re-mint the access token (via postman-resolve-service-token-action) and for the Postman CLI spec-lint login. Asset operations (environments, collections, mocks, monitors) run on the access-token gateway and do not use the PMAK. Optional when a valid postman-access-token is supplied; required only for the CLI lint path. | no | |
204
+ | `postman-api-key` | Postman API key (PMAK). Used only to mint/re-mint the access token (via postman-resolve-service-token-action) and for the Postman CLI login --with-api-key step in the generated CI workflow (collection run). Asset operations (environments, collections, mocks, monitors) run on the access-token gateway and do not use the PMAK. Optional when a valid postman-access-token is supplied (a failing key is replaced by one minted from the token); required as the mint source when postman-access-token is omitted. | no | |
205
205
  | `postman-access-token` | Postman access token minted by postman-resolve-service-token-action. Required for all asset operations (environment create/get/update, collection read, mock, monitor) which run through the access-token gateway. Also used for workspace linking, system environment association, and generated API-key creation. When omitted, the action mints one from postman-api-key (service-account PMAK); if that mint also fails the action fails fast — PMAK is never an asset-routing fallback. | no | |
206
206
  | `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 | `""` |
207
207
  | `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` |
package/action.yml CHANGED
@@ -1,5 +1,5 @@
1
- name: 'Postman Onboarding: Repo Sync'
2
- description: Export Postman collections and environments into your repo with CI wiring. Part of the Postman API Onboarding suite.
1
+ name: 'Postman Enterprise Automation: Repo Sync'
2
+ description: Export Postman collections and environments into your repo with CI wiring. Part of the Postman Enterprise Automation Suite.
3
3
  author: Postman
4
4
  branding:
5
5
  icon: refresh-cw
@@ -131,7 +131,7 @@ inputs:
131
131
  required: false
132
132
  default: support@postman.com
133
133
  postman-api-key:
134
- description: Postman API key (PMAK). Used only to mint/re-mint the access token (via postman-resolve-service-token-action) and for the Postman CLI spec-lint login. Asset operations (environments, collections, mocks, monitors) run on the access-token gateway and do not use the PMAK. Optional when a valid postman-access-token is supplied; required only for the CLI lint path.
134
+ description: Postman API key (PMAK). Used only to mint/re-mint the access token (via postman-resolve-service-token-action) and for the Postman CLI login --with-api-key step in the generated CI workflow (collection run). Asset operations (environments, collections, mocks, monitors) run on the access-token gateway and do not use the PMAK. Optional when a valid postman-access-token is supplied (a failing key is replaced by one minted from the token); required as the mint source when postman-access-token is omitted.
135
135
  required: false
136
136
  postman-access-token:
137
137
  description: Postman access token minted by postman-resolve-service-token-action. Required for all asset operations (environment create/get/update, collection read, mock, monitor) which run through the access-token gateway. Also used for workspace linking, system environment association, and generated API-key creation. When omitted, the action mints one from postman-api-key (service-account PMAK); if that mint also fails the action fails fast — PMAK is never an asset-routing fallback.
package/dist/action.cjs CHANGED
@@ -118094,6 +118094,8 @@ function buildCiWorkflowLines(installUrl, postmanRegion, privateMockAuth) {
118094
118094
  "jobs:",
118095
118095
  " test:",
118096
118096
  " runs-on: ubuntu-latest",
118097
+ " env:",
118098
+ " HAS_SSL_CERT: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 != '' }}",
118097
118099
  " steps:",
118098
118100
  " - uses: actions/checkout@v5",
118099
118101
  " - name: Install Postman CLI",
@@ -118127,7 +118129,7 @@ function buildCiWorkflowLines(installUrl, postmanRegion, privateMockAuth) {
118127
118129
  " end",
118128
118130
  " RUBY",
118129
118131
  " - name: Decode SSL certificates",
118130
- " if: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 != '' }}",
118132
+ " if: ${{ env.HAS_SSL_CERT == 'true' }}",
118131
118133
  " env:",
118132
118134
  " POSTMAN_SSL_CLIENT_CERT_B64: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 }}",
118133
118135
  " POSTMAN_SSL_CLIENT_KEY_B64: ${{ secrets.POSTMAN_SSL_CLIENT_KEY_B64 }}",
@@ -118452,8 +118454,11 @@ function renderGcWorkflowTemplate() {
118452
118454
  return [
118453
118455
  "name: Postman Preview GC",
118454
118456
  "on:",
118457
+ // The delete event takes no branches/tags filter (GitHub only allows one on
118458
+ // merge_group, push, pull_request, pull_request_target, and workflow_run).
118459
+ // The previous ["**"] was a match-everything wildcard, so dropping it leaves
118460
+ // the trigger behaviour unchanged.
118455
118461
  " delete:",
118456
- ' branches: ["**"]',
118457
118462
  " pull_request:",
118458
118463
  " types: [closed]",
118459
118464
  " schedule:",
package/dist/cli.cjs CHANGED
@@ -116199,6 +116199,8 @@ function buildCiWorkflowLines(installUrl, postmanRegion, privateMockAuth) {
116199
116199
  "jobs:",
116200
116200
  " test:",
116201
116201
  " runs-on: ubuntu-latest",
116202
+ " env:",
116203
+ " HAS_SSL_CERT: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 != '' }}",
116202
116204
  " steps:",
116203
116205
  " - uses: actions/checkout@v5",
116204
116206
  " - name: Install Postman CLI",
@@ -116232,7 +116234,7 @@ function buildCiWorkflowLines(installUrl, postmanRegion, privateMockAuth) {
116232
116234
  " end",
116233
116235
  " RUBY",
116234
116236
  " - name: Decode SSL certificates",
116235
- " if: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 != '' }}",
116237
+ " if: ${{ env.HAS_SSL_CERT == 'true' }}",
116236
116238
  " env:",
116237
116239
  " POSTMAN_SSL_CLIENT_CERT_B64: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 }}",
116238
116240
  " POSTMAN_SSL_CLIENT_KEY_B64: ${{ secrets.POSTMAN_SSL_CLIENT_KEY_B64 }}",
@@ -116557,8 +116559,11 @@ function renderGcWorkflowTemplate() {
116557
116559
  return [
116558
116560
  "name: Postman Preview GC",
116559
116561
  "on:",
116562
+ // The delete event takes no branches/tags filter (GitHub only allows one on
116563
+ // merge_group, push, pull_request, pull_request_target, and workflow_run).
116564
+ // The previous ["**"] was a match-everything wildcard, so dropping it leaves
116565
+ // the trigger behaviour unchanged.
116560
116566
  " delete:",
116561
- ' branches: ["**"]',
116562
116567
  " pull_request:",
116563
116568
  " types: [closed]",
116564
116569
  " schedule:",
package/dist/index.cjs CHANGED
@@ -118120,6 +118120,8 @@ function buildCiWorkflowLines(installUrl, postmanRegion, privateMockAuth) {
118120
118120
  "jobs:",
118121
118121
  " test:",
118122
118122
  " runs-on: ubuntu-latest",
118123
+ " env:",
118124
+ " HAS_SSL_CERT: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 != '' }}",
118123
118125
  " steps:",
118124
118126
  " - uses: actions/checkout@v5",
118125
118127
  " - name: Install Postman CLI",
@@ -118153,7 +118155,7 @@ function buildCiWorkflowLines(installUrl, postmanRegion, privateMockAuth) {
118153
118155
  " end",
118154
118156
  " RUBY",
118155
118157
  " - name: Decode SSL certificates",
118156
- " if: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 != '' }}",
118158
+ " if: ${{ env.HAS_SSL_CERT == 'true' }}",
118157
118159
  " env:",
118158
118160
  " POSTMAN_SSL_CLIENT_CERT_B64: ${{ secrets.POSTMAN_SSL_CLIENT_CERT_B64 }}",
118159
118161
  " POSTMAN_SSL_CLIENT_KEY_B64: ${{ secrets.POSTMAN_SSL_CLIENT_KEY_B64 }}",
@@ -118478,8 +118480,11 @@ function renderGcWorkflowTemplate() {
118478
118480
  return [
118479
118481
  "name: Postman Preview GC",
118480
118482
  "on:",
118483
+ // The delete event takes no branches/tags filter (GitHub only allows one on
118484
+ // merge_group, push, pull_request, pull_request_target, and workflow_run).
118485
+ // The previous ["**"] was a match-everything wildcard, so dropping it leaves
118486
+ // the trigger behaviour unchanged.
118481
118487
  " delete:",
118482
- ' branches: ["**"]',
118483
118488
  " pull_request:",
118484
118489
  " types: [closed]",
118485
118490
  " schedule:",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman-cs/onboarding-repo-sync",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "Postman repo sync GitHub Action.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",