aws / aws/codecatalyst-blueprints

Additional validations for input parameters when generating workflows

Open
#476 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
58
Forks
22
Avg merge
19m
Merged PRs (30d)
1

Description

## Describe the bug

Currently the validation for `BuildActionParameters.actionName` doesn't exist - so you are able to set `actionName = "Hello cool action"` which is then not supported by the Workflow engine

![image](https://github.com/aws/codecatalyst-blueprints/assets/327276/b5e75608-a82c-41f7-a163-11f3faa7d4b7)

## Expected behavior

During the process of building/creating/synthesizing the workflow there should be an error message at build time to avoid this behaviour.

## Version information

- OS: [e.g. iOS]
- Node.js version: [e.g. 16.14.2]
- Package version: [e.g. 1.0.0]

## Additional context

This is part of our [https://github.com/taimos/projen-pipelines](https://github.com/taimos/projen-pipelines) implementation

Contributor guide

Open the contributing guide

Research direction

Start by locating BuildActionParameters.actionName and the workflow building, creating, or synthesizing entry point. Add validation so unsupported action names produce an error at build time, and verify that valid names continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.