Skip to content

Commit 016d282

Browse files
committed
odin-261: dependabot commits show as committer web-flow
1 parent 0779511 commit 016d282

File tree

4 files changed

+159
-233
lines changed

4 files changed

+159
-233
lines changed

.github/workflows/pull-request.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ jobs:
101101
throw new Error(`auto-merge-dependabot not permitted for author login: ${author.login} type: ${author.type}`);
102102
}
103103
104-
let committer = commit.committer;
105-
if (committer.login != 'dependabot[bot]' || committer.type != 'Bot') {
106-
throw new Error(`auto-merge-dependabot not permitted for committer login: ${committer.login} type: ${committer.type}`);
107-
}
108-
109104
}
110105
111106
if (commits.data.length>249) {

iam.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ resource "aws_iam_role_policy" "this" {
8383
policy = data.aws_iam_policy_document.this.json
8484
}
8585

86+
resource "aws_iam_role_policy_attachment" "logging" {
87+
role = aws_iam_role.this.name
88+
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
89+
}
90+
8691
resource "aws_iam_role_policy_attachment" "insights" {
8792
count = var.enable_lambda_insights ? 1 : 0
8893
role = aws_iam_role.this.name

0 commit comments

Comments
 (0)