CycodeLabs / raven

CI/CD Security Analyzer
Apache License 2.0
611 stars 32 forks source link

Feature: Add support for downloading a single repo, branch, or workflow #194

Open sadreck opened 2 months ago

sadreck commented 2 months ago

Splitting https://github.com/CycodeLabs/raven/pull/187 into multiple PRs as requested.

New feature command line usage:

Download a single repo - default branch

python3 main.py download repo --token "$GITHUB_TOKEN" --debug --clean-redis --repo-name "nextcloud/server"

Download a single repo - specific branch

python3 main.py download repo --token "$GITHUB_TOKEN" --debug --clean-redis --repo-name "nextcloud/server@fix-dav-properties-column-type"

Download specific workflow from repo

python3 main.py download repo --token "$GITHUB_TOKEN" --debug --clean-redis --repo-name "nextcloud/server" --workflow "cypress.yml"

Run Integration Tests

pytest -v tests/integration/