Skip to content

Commit 4b6886e

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

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
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

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ package-mode = false
1313

1414
[tool.poetry.dependencies]
1515
python = "^3.12"
16-
aws-lambda-powertools = "^3.19.0"
16+
1717

1818

1919
[tool.poetry.group.dev.dependencies]
2020
# ci / testing dependencies
21-
2221
mypy = "^1.16.0"
2322
pytest = "^8.4.0"
2423
pytest-asyncio = "^1.0.0"
@@ -34,6 +33,7 @@ boto3 = "^1.40.17"
3433
moto = "^5.1.10"
3534
pyparsing = "^3.2.3"
3635
types-python-dateutil = "^2.9.0.20250822"
36+
aws-lambda-powertools = "^3.19.0"
3737

3838

3939
[tool.poetry.group.local.dependencies]
@@ -77,7 +77,6 @@ target-version = "py312"
7777

7878
[tool.ruff.lint.per-file-ignores]
7979

80-
8180
[tool.mypy]
8281
python_version = "3.12"
8382
warn_return_any = true
@@ -87,9 +86,6 @@ check_untyped_defs = true
8786
exclude = [
8887
"build",
8988
"dist",
90-
"scripts",
91-
"terraform",
92-
"module"
9389
]
9490

9591
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)