Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrutiny: cdk no-ops (successfully) with no tty #1380

Closed
eladb opened this issue Dec 17, 2018 · 0 comments · Fixed by #1382
Closed

scrutiny: cdk no-ops (successfully) with no tty #1380

eladb opened this issue Dec 17, 2018 · 0 comments · Fixed by #1382
Assignees
Labels
bug This issue is a bug.

Comments

@eladb
Copy link
Contributor

eladb commented Dec 17, 2018

When running cdk deploy the --require-approval enabled in an environment without tty, such as CI/CD or integration tests (terminal is not attached), the toolkit will not deploy and exit with exit status 0. We expect it to fail in this case

@eladb eladb added the bug This issue is a bug. label Dec 17, 2018
@eladb eladb self-assigned this Dec 17, 2018
eladb pushed a commit that referenced this issue Dec 17, 2018
If STDIN is not connected to a TTY (terminal), and scrutiny is enabled,
we expect the program to fail (exit with non-zero exit code).

This is especially important for CI/CD scenarios where you wouldn't want
to accidentally deploy changes that didn't pass a scrutiny check.

Fixes #1380

Tested manually.
eladb pushed a commit that referenced this issue Dec 19, 2018
If STDIN is not connected to a TTY (terminal), and scrutiny is enabled,
we expect the program to fail (exit with non-zero exit code).

This is especially important for CI/CD scenarios where you wouldn't want
to accidentally deploy changes that didn't pass a scrutiny check.

Added integration test.

Fixes #1380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant