mirror of
https://github.com/ZGCA-Forge/MsgCenterPy.git
synced 2026-02-04 13:25:19 +00:00
Fix release build
This commit is contained in:
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
@@ -127,18 +127,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Run Safety CLI to check for vulnerabilities
|
||||||
uses: actions/setup-python@v6
|
uses: pyupio/safety-action@v1
|
||||||
with:
|
with:
|
||||||
python-version: "3.10" # Use minimum version for consistency
|
api-key: ${{ secrets.SAFETY_CHECK }}
|
||||||
|
output-format: json
|
||||||
- name: Install security tools
|
args: --detailed-output --output-format json
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install "safety>=3.0.0" "typer<0.12.0" "marshmallow<4.0.0"
|
|
||||||
|
|
||||||
- name: Run safety security scan
|
|
||||||
run: safety check --output json > safety-report.json
|
|
||||||
|
|
||||||
- name: Upload security reports
|
- name: Upload security reports
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user