Skip to content

Commit

Permalink
fix(checks): Cannot read properties of undefined (reading 'direction')
Browse files Browse the repository at this point in the history
  • Loading branch information
m-pizarro committed May 17, 2023
1 parent d1199a8 commit 700a3de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default {
]
return !rules.some((rule: any) => {
return (
rule &&
rule.direction === 'Inbound' &&
rule.access === 'Allow' &&
['TCP', 'Tcp', '*'].includes(rule.protocol) &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ describe('PCI Data Security Standard: 3.2.1', () => {
destinationPortRanges:
fromPort && toPort ? [`${fromPort}-${toPort}`] : [],
},
undefined as unknown as SecurityRule
],
},
],
Expand Down

0 comments on commit 700a3de

Please sign in to comment.