Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
- "christophe-papazian/system-tests-for-incident-46261"
pull_request:
schedule:
- cron: '0 0,12 * * *' # Runs every day at midnight and noon utc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- "main"
- "christophe-papazian/system-tests-for-incident-46261"

jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion datadog_lambda/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ def get_asm_blocked_response(
content = ""
else:
content_type = blocked.get("content-type", "application/json")
content = http_utils._get_blocked_template(content_type)
content = http_utils._get_blocked_template(
content_type, blocked.get("block_id", "default")
)

response = {
"statusCode": blocked.get("status_code", 403),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [
python = ">=3.8.0,<4"
datadog = ">=0.51.0,<1.0.0"
wrapt = "^1.11.2"
ddtrace = ">=3.16.2,<4"
ddtrace = {git = "https://github.com/DataDog/dd-trace-py.git", branch = "3.19"}
ujson = ">=5.9.0"
botocore = { version = "^1.34.0", optional = true }
requests = { version ="^2.22.0", optional = true }
Expand Down
Loading