Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Update scan_new_packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
h4sh5 authored Sep 6, 2023
1 parent c7ed9a6 commit 5ed9521
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/scan_new_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ jobs:
run: |
guarddog pypi verify -x empty_information -x release_zero -x single_python_file -x repository_integrity_mismatch -x cmd-overwrite --output-format=json new.txt > report.json || echo guarddog error $?
# - name: run secret scan
# run: semgrep --json -c p/secrets packages/ | tee -a secrets.jsonl.txt

- name: run yara scan
run: yara mal-library-ttps/yara-rules/sus_pkg.yara packages | tee new_yara_results.txt

Expand All @@ -50,6 +47,9 @@ jobs:
python3 raise_high_risk_pkgs.py || echo errors occurred here
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: run secret scan
run: semgrep --json -c p/secrets packages/ | tee secrets.jsonl.txt


- name: Push scanned packages to cache
Expand All @@ -66,7 +66,7 @@ jobs:
git pull
git push
- name: Archive code coverage results
- name: Archive report
uses: actions/upload-artifact@v3
with:
name: new-scan-report
Expand All @@ -75,3 +75,5 @@ jobs:





0 comments on commit 5ed9521

Please sign in to comment.