Skip to content

Commit 24f06ee

Browse files
authored
fix: correct permissions for write (#5)
* fix: correct permissions for write * ci: fix checkov wanring on actions
1 parent 5da1b6a commit 24f06ee

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
env:
1010
TERRAFORM_DOCS_VERSION: v0.16.0
1111

12+
permissions: read-all
13+
1214
jobs:
1315
collectInputs:
1416
name: Collect workflow inputs

.github/workflows/semantic-releaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- '**.tf'
99
- '!examples/**.tf'
1010

11+
permissions: read-all
12+
1113
jobs:
1214
release:
1315
name: Release

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ data "aws_iam_policy_document" "bucket" {
9191
"s3:PutObject",
9292
]
9393

94-
resources = [for o in var.account_trails : "${local.bucket_arn}/AWSLogs/${o.account}"]
94+
resources = [for o in var.account_trails : "${local.bucket_arn}/AWSLogs/${o.account}/*"]
9595

9696
condition {
9797
test = "StringEquals"

0 commit comments

Comments
 (0)