update sca.yml config
Some checks failed
SCA - pip-audit / pip-audit (push) Failing after 0s

This commit is contained in:
akarkode 2026-04-28 08:31:59 +07:00
parent 8c6b1a9a3f
commit 74c0c43832

View File

@ -10,27 +10,19 @@ jobs:
pip-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
run: |
git clone https://oauth2:${{ secrets.GITEA_TOKEN }}@git.akarkode.com/${{ gitea.repository }}.git repo
cd repo && git checkout ${{ gitea.sha }}
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install tools
run: pip install pipenv pip-audit
- name: Install dependencies
run: pipenv install --deploy
- name: Install pip-audit
run: pip3 install pip-audit
- name: Run pip-audit scan
run: pipenv run pip-audit --format json -o pip-audit-report.json || true
working-directory: repo
run: |
pip-audit -r Pipfile.lock || true
- name: Fail on HIGH/CRITICAL
run: pipenv run pip-audit --fail-on-severity high
- name: Upload report
uses: actions/upload-artifact@v4
if: always()
with:
name: pip-audit-report
path: pip-audit-report.json
working-directory: repo
run: pip-audit -r Pipfile.lock --fail-on-severity high