We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652a27e commit 9ffa2bcCopy full SHA for 9ffa2bc
1 file changed
packages/cdkConstructs/src/nag/rules/ApiGWMutualTls.ts
@@ -10,9 +10,8 @@ export default Object.defineProperty(
10
(node: CfnResource): NagRuleCompliance => {
11
if (node instanceof CfnDomainName) {
12
const stack = Stack.of(node)
13
- // Pull from context or props
14
- const isPullRequest =
15
- stack.node.tryGetContext("isPullRequest") === true
+ // Try getting isPullRequest context value
+ const isPullRequest = stack.node.tryGetContext("isPullRequest") === true
16
17
if (isPullRequest) {
18
return NagRuleCompliance.COMPLIANT
0 commit comments