You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .controlplane/readme.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,9 @@ or similarly trusted maintainers should be able to approve the promotion job.
74
74
The promotion workflow uses that environment before it can access
75
75
`CPLN_TOKEN_PRODUCTION`, so the production token is not exposed to ordinary
76
76
review-app or staging runs.
77
+
Generated caller workflows pass only the named secrets each upstream workflow
78
+
needs. They do not use `secrets: inherit`; `CPLN_TOKEN_PRODUCTION` is supplied
79
+
only by the protected `production` Environment after approval.
77
80
78
81
Advanced optional variables:
79
82
@@ -499,6 +502,7 @@ The GitHub settings and Control Plane resources must match the app names in
499
502
`REVIEW_APP_PREFIX` unset and let the workflow infer
500
503
`qa-react-webpack-rails-tutorial`; generated review apps are named
501
504
`qa-react-webpack-rails-tutorial-<PR number>`.
505
+
If you have older review apps from the previous `qa-react-webpack-rails-tutorial-pr-<PR number>` naming, delete them manually after this flow lands; cleanup targets the current prefix convention.
502
506
503
507
This allows teams to:
504
508
- Preview changes in a production-like environment
Copy file name to clipboardExpand all lines: .github/cpflow-help.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ You asked for review app help. These commands are generated by [cpflow](https://
35
35
| Name | Required | Notes |
36
36
| --- | --- | --- |
37
37
|`CPLN_TOKEN_STAGING`| yes | Service-account token scoped to the staging Control Plane org on controlplane.com. |
38
-
|`CPLN_TOKEN_PRODUCTION`| yes (for promote)| Store this as a secret on the protected `production` GitHub Environment, not as a repository or organization secret. |
38
+
|`CPLN_TOKEN_PRODUCTION`| yes for promote, as an environment secret| Store this as a secret on the protected `production` GitHub Environment, not as a repository or organization secret. |
39
39
|`DOCKER_BUILD_SSH_KEY`| optional | Private SSH key used when Docker builds fetch private deps via `RUN --mount=type=ssh`. |
40
40
41
41
For normal generated review apps, `CPLN_TOKEN_STAGING` is the only required
@@ -54,15 +54,18 @@ For production promotion, create a GitHub Environment named `production`, add
54
54
required reviewers, enable prevent self-review, and store
55
55
`CPLN_TOKEN_PRODUCTION` as an environment secret there. The generated promotion
56
56
workflow uses that environment before it can access production secrets.
57
+
Generated caller workflows pass only the named secrets each upstream workflow
58
+
needs. They do not use `secrets: inherit`; the production token is supplied by
59
+
the protected `production` Environment after approval.
57
60
58
61
### GitHub Actions variables
59
62
60
63
| Name | Required | Notes |
61
64
| --- | --- | --- |
62
65
|`CPLN_ORG_STAGING`| optional for review apps; yes for staging | Override the staging/review Control Plane org inferred from `controlplane.yml`. |
63
-
|`CPLN_ORG_PRODUCTION`| yes (for promote)| Control Plane org on controlplane.com for production. Prefer a `production` environment variable. |
66
+
|`CPLN_ORG_PRODUCTION`| yes for promote, preferably as environment variable| Control Plane org on controlplane.com for production. Prefer a `production` environment variable. |
64
67
|`STAGING_APP_NAME`| yes | App name in `controlplane.yml` used as the staging deploy target. |
65
-
|`PRODUCTION_APP_NAME`| yes (for promote)| App name in `controlplane.yml` used as the production deploy target. Prefer a `production` environment variable. |
68
+
|`PRODUCTION_APP_NAME`| yes for promote, preferably as environment variable| App name in `controlplane.yml` used as the production deploy target. Prefer a `production` environment variable. |
66
69
|`REVIEW_APP_PREFIX`| optional | Override the review-app app key inferred from the `match_if_app_name_starts_with: true` entry in `controlplane.yml`. |
67
70
|`REVIEW_APP_DEPLOYING_ICON_URL`| optional, advanced | Cosmetic custom image URL for the animated deploying icon in review-app PR comments. Set to `none` to use the text fallback icon. |
68
71
|`STAGING_APP_BRANCH`| optional | Custom staging branch. Custom branches must also appear in `cpflow-deploy-staging.yml`'s push filter. |
@@ -75,6 +78,11 @@ workflow uses that environment before it can access production secrets.
75
78
76
79
</details>
77
80
81
+
Generated review app names use `<review-app-prefix>-<PR number>`, for example
82
+
`my-app-review-123`. If you are migrating from older local workflow glue that
83
+
created names like `<review-app-prefix>-pr-123`, delete those old review apps
0 commit comments