Skip to content

Commit 184efc8

Browse files
authored
Update security-gateway.yml
1 parent 141bd01 commit 184efc8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/security-gateway.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ jobs:
3636
exit 1
3737
fi
3838
39+
- name: Configure Django settings for testing
40+
run: |
41+
echo "Configuring Django settings for testing..."
42+
# Создаем файл .env, если он не существует
43+
if [ ! -f ".env" ]; then
44+
echo "Creating .env file for testing..."
45+
cat <<EOF > .env
46+
DEBUG=True
47+
SECRET_KEY=your_secret_key_for_testing
48+
DATABASE_URL=postgres://postgres:postgres@localhost:5432/testdb
49+
EOF
50+
fi
51+
# Импортируем переменные окружения из .env
52+
export $(grep -v '^#' .env | xargs)
53+
3954
- name: Scan for vulnerabilities with Trivy
4055
id: trivy-scan
4156
uses: aquasecurity/trivy-action@master

0 commit comments

Comments
 (0)