Skip to content

Commit

Permalink
hotfix iam safeguard bug (#117)
Browse files Browse the repository at this point in the history
hotfix iam safeguard bug
  • Loading branch information
dschep authored May 8, 2019
2 parents 62045e9 + fb0d012 commit 94b8df8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless/enterprise-plugin",
"version": "0.5.0",
"version": "0.5.1",
"engines": {
"node": ">=6.0"
},
Expand All @@ -18,7 +18,7 @@
"dependencies": {
"@babel/polyfill": "^7.2.5",
"@serverless/event-mocks": "^1.1.1",
"@serverless/platform-sdk": "next",
"@serverless/platform-sdk": "latest",
"chalk": "^2.4.2",
"flat": "^4.1.0",
"fs-extra": "^7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/safeguards/policies/no-wild-iam-role-statements.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function noWildIamPolicy(policy, service) {
continue
}

for (const iamPolicy of Properties.Policies) {
for (const iamPolicy of Properties.Policies || []) {
for (const { Effect, Action, Resource } of iamPolicy.PolicyDocument.Statement) {
if (Effect === 'Deny') {
continue
Expand Down

0 comments on commit 94b8df8

Please sign in to comment.