We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141bd01 commit 184efc8Copy full SHA for 184efc8
.github/workflows/security-gateway.yml
@@ -36,6 +36,21 @@ jobs:
36
exit 1
37
fi
38
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
+
54
- name: Scan for vulnerabilities with Trivy
55
id: trivy-scan
56
uses: aquasecurity/trivy-action@master
0 commit comments