Skip to content

Commit

Permalink
add check no public access check
Browse files Browse the repository at this point in the history
  • Loading branch information
mponaws committed Aug 9, 2024
1 parent bd6e05a commit 6c9aca6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/policy-validator-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
uses: aws-actions/[email protected]
with:
policy-check-type: "CHECK_NO_PUBLIC_ACCESS"
template-path: 'test/check-no-new-access/cfn/sample-role.yaml'
template-path: 'test/check-no-new-access/cfn/iam_users_groups_policies.yaml'
region: ${{env.REGION }}
# Print result from CHECK_NO_NEW_ACCESS check
- name: Print the result for CheckNoPublicAccess check
Expand Down
14 changes: 7 additions & 7 deletions test/check-no-new-access/cfn/sample-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Resources:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Sid: 'some new stuff'
Principal:
AWS: 'arn:aws:iam::333333333333:role/NotMyRole'
Action: 'sts:AssumeRole'
- Effect: Allow
Sid: some new stuff
Principal:
AWS: arn:aws:iam::333333333333:role/NotMyRole
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonEC2FullAccess
- arn:aws:iam::aws:policy/AmazonS3FullAccess
- arn:aws:iam::aws:policy/AmazonEC2FullAccess
- arn:aws:iam::aws:policy/AmazonS3FullAccess

0 comments on commit 6c9aca6

Please sign in to comment.