Skip to content

Commit 08fe9e0

Browse files
SCA Finding fixed
1 parent 73827f8 commit 08fe9e0

10 files changed

Lines changed: 25 additions & 7 deletions

File tree

.github/workflows/maze-runner.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Maze Runner
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
maze-runner:
710
runs-on: 'ubuntu-latest'

.github/workflows/python-package.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test bugsnag-python against Python versions
22

33
on: [ push, pull_request ]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
test:
710
runs-on: ${{ matrix.os }}
@@ -46,6 +49,8 @@ jobs:
4649
needs: test
4750
runs-on: ubuntu-latest
4851
container: python:3-slim
52+
permissions:
53+
contents: none
4954
steps:
5055
- name: Send request
5156
run: |

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelog
66
### Enhancements
77

88
* Add support for `level` parameter in `BugsnagHandler` constructor and `Client.log_handler()` method.
9+
[#416](https://github.com/bugsnag/bugsnag-python/pull/416)
910

1011
## v4.9.0 (2026-04-21)
1112

example/celery+django/celery_django/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
2121

2222
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 't70qw62gdx%ru%w1&f#$so*a$h9-m6h#a1=gji9$5q&)exf$*%'
23+
SECRET_KEY = os.environ.get(
24+
'DJANGO_SECRET_KEY',
25+
'django-insecure-testonly-not-a-real-secret-key-replace-me',
26+
)
2427

2528
# SECURITY WARNING: don't run with debug turned on in production!
2629
DEBUG = True

example/django21/bugsnag_demo/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
1919

2020
# SECURITY WARNING: keep the secret key used in production secret!
21-
SECRET_KEY = '3n3h7r@tpqnwqtt8#avxh_t75k_6zf3x)@6cg!u(&xmz79(26h'
21+
SECRET_KEY = os.environ.get(
22+
'DJANGO_SECRET_KEY',
23+
'django-insecure-testonly-not-a-real-secret-key-replace-me',
24+
)
2225

2326
# SECURITY WARNING: don't run with debug turned on in production!
2427
DEBUG = True

example/django31/todo/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = '$#yb)ri-v$^#8o1r0x%5$0yy&aqu2yefwo10zm+(=7!t+d^6ft'
25+
SECRET_KEY = os.environ.get(
26+
'DJANGO_SECRET_KEY',
27+
'django-insecure-testonly-not-a-real-secret-key-replace-me',
28+
)
2629

2730
# SECURITY WARNING: don't run with debug turned on in production!
2831
DEBUG = True

tests/fixtures/django30/todo/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = '$#yb)ri-v$^#8o1r0x%5$0yy&aqu2yefwo10zm+(=7!t+d^6ft'
25+
SECRET_KEY = 'django-insecure-testonly-not-a-real-secret-key-replace-me'
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = False

tests/fixtures/django4/todo/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
2222

2323
# SECURITY WARNING: keep the secret key used in production secret!
24-
SECRET_KEY = 'django-insecure-z++&i7gx^m*qqq_1(xjqo=7%gg)^&fcq6fa3gen+10(zn5756z'
24+
SECRET_KEY = 'django-insecure-testonly-not-a-real-secret-key-replace-me'
2525

2626
# SECURITY WARNING: don't run with debug turned on in production!
2727
DEBUG = False

tests/fixtures/django5/todo/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
2222

2323
# SECURITY WARNING: keep the secret key used in production secret!
24-
SECRET_KEY = 'django-insecure-z++&i7gx^m*qqq_1(xjqo=7%gg)^&fcq6fa3gen+10(zn5756z'
24+
SECRET_KEY = 'django-insecure-testonly-not-a-real-secret-key-replace-me'
2525

2626
# SECURITY WARNING: don't run with debug turned on in production!
2727
DEBUG = False

tests/fixtures/django6/todo/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# See https://docs.djangoproject.com/en/6.0/howto/deployment/checklist/
2222

2323
# SECURITY WARNING: keep the secret key used in production secret!
24-
SECRET_KEY = 'django-insecure-z++&i7gx^m*qqq_1(xjqo=7%gg)^&fcq6fa3gen+10(zn5756z'
24+
SECRET_KEY = 'django-insecure-testonly-not-a-real-secret-key-replace-me'
2525

2626
# SECURITY WARNING: don't run with debug turned on in production!
2727
DEBUG = False

0 commit comments

Comments
 (0)