@@ -83,25 +83,12 @@ jobs:
8383 name : coverage-html-${{ matrix.python-version }}
8484 path : htmlcov
8585
86- # Upload Codecov once to avoid noisy duplicate uploads
87- - name : Upload to Codecov
88- if : matrix.python-version == '3.11'
89- uses : codecov/codecov-action@v4
90- with :
91- files : coverage.xml
92- flags : unittests
93- fail_ci_if_error : false
94- env :
95- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
96-
9786 security :
9887 name : Security Scan (Bandit + Safety)
9988 runs-on : ubuntu-latest
10089 needs : test
101- # Grant code scanning upload only here
10290 permissions :
10391 contents : read
104- security-events : write
10592
10693 env :
10794 SECURITY_FAIL_LEVEL : MEDIUM
@@ -121,16 +108,10 @@ jobs:
121108 - name : Sync dependencies
122109 run : uv sync --all-extras --dev
123110
124- - name : Run Bandit (JSON + SARIF )
111+ - name : Run Bandit (JSON)
125112 run : |
126- uv run bandit -r src/ -f json -o bandit-report.json || true
127- uv run bandit -r src/ -f sarif -o bandit-report.sarif || true
128-
129- - name : Upload Bandit SARIF to GitHub Code Scanning
130- uses : github/codeql-action/upload-sarif@v3
131- with :
132- sarif_file : bandit-report.sarif
133- continue-on-error : true
113+ uv run bandit -r python_project_deployment/ -f json -o bandit-report.json || true
114+ uv run bandit -r python_project_deployment/ -f txt
134115
135116 - name : Run Safety (JSON)
136117 run : uv run safety check --json > safety-report.json || true
@@ -149,5 +130,4 @@ jobs:
149130 name : security-reports
150131 path : |
151132 bandit-report.json
152- bandit-report.sarif
153133 safety-report.json
0 commit comments