Skip to content

Commit 1b54e42

Browse files
authored
Raf/feature (#37)
* Fixing caches * boo * Permissions ftw!
1 parent f356e23 commit 1b54e42

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const onFindings = async function (bucket, key, result) {
1717

1818
const objectPath = utils.internalId(bucket, key);
1919
console.log(`RESULT: ${objectPath} has findings`, result.findings);
20+
console.log(`actions delete: ${CONFIG.ACTION_DELETE_OBJECT} tag: ${CONFIG.ACTION_TAG_OBJECT}`);
2021

2122
if (CONFIG.ACTION_TAG_OBJECT === true) {
2223
await tagObject(bucket, key, result);

template.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ Resources:
8383
Effect: "Allow"
8484
Action:
8585
- "s3:DeleteObject"
86+
- "s3:DeleteObjectTagging"
87+
- "s3:GetObject"
88+
- "s3:GetObjectTagging"
89+
- "s3:GetObjectVersionTagging"
8690
- "s3:PutObjectTagging"
8791
- "s3:PutObjectVersionTagging"
8892
Resource: !Sub "arn:aws:s3:::${bucketName}/*"

0 commit comments

Comments
 (0)