Skip to content

Commit f4d198f

Browse files
committed
Fix: Upgrade to artifact actions v4
1 parent 0e1a08e commit f4d198f

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

.github/workflows/security-tests.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
pull_request:
77
branches: [ main ]
88
schedule:
9-
# Run daily at 2 AM UTC
109
- cron: '0 2 * * *'
1110
workflow_dispatch:
1211

@@ -37,10 +36,9 @@ jobs:
3736
3837
- name: Download Previous Database
3938
continue-on-error: true
40-
run: |
41-
gh run download --name test-database --dir . || echo "No previous database found (this is OK for first run)"
42-
env:
43-
GH_TOKEN: ${{ github.token }}
39+
uses: actions/download-artifact@v4
40+
with:
41+
name: test-database
4442

4543
- name: Run CVSS 4.0 Security Tests
4644
run: |
@@ -50,7 +48,7 @@ jobs:
5048

5149
- name: Upload Database Artifact
5250
if: always()
53-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5452
with:
5553
name: test-database
5654
path: test_results.db
@@ -69,19 +67,3 @@ jobs:
6967
publish_dir: ./scripts
7068
publish_branch: gh-pages
7169
enable_jekyll: false
72-
73-
- name: Display Test Summary
74-
if: always()
75-
run: |
76-
echo "==================================================================="
77-
echo "CVSS 4.0 Security Test Results"
78-
echo "==================================================================="
79-
if [ -f test_results.db ]; then
80-
echo "Database exists - check dashboard for details"
81-
ls -lh test_results.db
82-
else
83-
echo "No database found"
84-
fi
85-
echo "==================================================================="
86-
echo "Dashboard URL: https://cvss-report.openmrs.org"
87-
echo "==================================================================="

0 commit comments

Comments
 (0)