@@ -16,18 +16,17 @@ jobs:
1616
1717 steps :
1818 - name : Checkout code
19- uses : actions/checkout@v3
19+ uses : actions/checkout@v4 # Updated to v4
2020
2121 - name : Set up Python
22- uses : actions/setup-python@v4
22+ uses : actions/setup-python@v5 # Updated to v5
2323 with :
2424 python-version : ${{ env.PYTHON_VERSION }}
2525 cache : ' pip'
2626
2727 - name : Install dependencies
2828 run : |
2929 python -m pip install --upgrade pip
30- # Додано types-PyYAML сюди
3130 pip install black flake8 mypy isort types-PyYAML
3231 pip install -r requirements.txt
3332
@@ -64,10 +63,10 @@ jobs:
6463
6564 steps :
6665 - name : Checkout code
67- uses : actions/checkout@v3
66+ uses : actions/checkout@v4 # Updated to v4
6867
6968 - name : Set up Python
70- uses : actions/setup-python@v4
69+ uses : actions/setup-python@v5 # Updated to v5
7170 with :
7271 python-version : ${{ env.PYTHON_VERSION }}
7372 cache : ' pip'
@@ -95,15 +94,17 @@ jobs:
9594 DATABASE_URL : postgresql://postgres:postgres@localhost:5432/test_db
9695
9796 - name : Upload coverage to Codecov
98- uses : codecov/codecov-action@v3
97+ uses : codecov/codecov-action@v4 # Updated to v4
9998 with :
10099 file : ./coverage.xml
101100 flags : unittests
102101 name : codecov-umbrella
103102 fail_ci_if_error : true
103+ token : ${{ secrets.CODECOV_TOKEN }} # v4 вимагає токен, якщо репозиторій приватний, або для стабільності
104104
105+ # FIX: Updated to v4 (v3 is disabled by GitHub)
105106 - name : Upload coverage report as artifact
106- uses : actions/upload-artifact@v3
107+ uses : actions/upload-artifact@v4
107108 with :
108109 name : coverage-report
109110 path : htmlcov/
@@ -113,13 +114,12 @@ jobs:
113114 runs-on : ubuntu-latest
114115 needs : test
115116
116-
117117 steps :
118118 - name : Checkout code
119- uses : actions/checkout@v3
119+ uses : actions/checkout@v4 # Updated to v4
120120
121121 - name : Set up Docker Buildx
122- uses : docker/setup-buildx-action@v2
122+ uses : docker/setup-buildx-action@v3 # Updated to v3
123123
124124 - name : Build Airflow image
125125 run : |
@@ -149,7 +149,7 @@ jobs:
149149
150150 steps :
151151 - name : Checkout code
152- uses : actions/checkout@v3
152+ uses : actions/checkout@v4 # Updated to v4
153153
154154 - name : Run Trivy vulnerability scanner
155155 uses : aquasecurity/trivy-action@master
@@ -160,7 +160,7 @@ jobs:
160160 output : ' trivy-results.sarif'
161161
162162 - name : Upload Trivy results to GitHub Security
163- uses : github/codeql-action/upload-sarif@v2
163+ uses : github/codeql-action/upload-sarif@v3 # Updated to v3
164164 with :
165165 sarif_file : ' trivy-results.sarif'
166166
@@ -170,7 +170,7 @@ jobs:
170170 bandit -r src/ -f json -o bandit-report.json || true
171171
172172 - name : Upload Bandit report
173- uses : actions/upload-artifact@v3
173+ uses : actions/upload-artifact@v4
174174 with :
175175 name : bandit-security-report
176- path : bandit-report.json
176+ path : bandit-report.json
0 commit comments