Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/veracode-sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,29 @@ jobs:
fi
rm -rf veracode-helper

- name: Check for requirements files and create Pipfile.lock
run: |
if [ -f "requirements.txt" ] || [ -f "requirements-dev.txt" ] || [ -f "dev-requirements.txt" ]; then
if [ -f "Pipfile.lock" ]; then
echo "- Requirements file(s) found but Pipfile.lock already exists. Skipping pip install process."
else
echo "- Requirements file(s) found. Creating Pipfile.lock..."
if [ -f "requirements.txt" ]; then
echo "-- Installing from requirements.txt"
pip install -r requirements.txt
elif [ -f "requirements-dev.txt" ]; then
echo "-- Installing from requirements-dev.txt"
pip install -r requirements-dev.txt
elif [ -f "dev-requirements.txt" ]; then
echo "-- Installing from dev-requirements.txt"
pip install -r dev-requirements.txt
fi
echo "-- Pipfile.lock creation process completed."
fi
else
echo "- No requirements files found. Skipping pip install process."
fi

- name: Run Veracode SCA
env:
SRCCLR_API_TOKEN: ${{ secrets.VERACODE_AGENT_TOKEN }}
Expand Down