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
{{ message }}
Repository navigation
Commit 5783b69
Browse filesBrowse the repository at this point in the historyBrowse files
Reuse and altitude reviewers both flagged the deploy role name being
retyped in .projenrc.py while the construct kept its own default. Two
sides must agree on it: FoundationStack creates the role and the
generated workflows put its ARN in role-to-assume. env_helper now owns
DEFAULT_GITHUB_DEPLOY_ROLE_NAME and both import it. DEFAULT_ENVIRONMENT
gets the same treatment.
That required env_helper to stop importing projen at runtime, since the
CDK app imports it for create_env_resource_name. The annotation moves
under TYPE_CHECKING, so synthesis no longer drags the build tool in.
Also from the reviews:
- .projenrc.py builds the task env dict once instead of repeating four
of five keys for the branch variant.
- TRAILING_HYPHENS and TRAILING_NON_ALPHANUMERIC collapse into one
TRAILING_SEPARATORS pattern; every string they trim is drawn from the
same alphabet, so they did the same job.
- _create_cdk_deployment_workflow drops chained_on_previous_environment,
which only duplicated whether triggers carries workflow_run, and the
unreachable -1 fallback on the environment index.
- BucketPublicAccessAspect flattens its nested if/else into guard
clauses matching the rest of the function.
- app.py tags branch deploys with extract_cleaned_branch_name directly
rather than calling create_env_resource_name("b") for its suffix
logic. The tag is now "add-api" rather than "b-add-api".
Generated workflows are byte-identical, confirming the cicd_helper
changes are behavior-preserving.
0 commit comments