Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
Signed-off-by: SkandaBT <[email protected]>
  • Loading branch information
skanda890 authored Dec 4, 2024
1 parent 115b0c8 commit 71d54cc
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,49 @@ jobs:

- name: Create Pull Request
uses: peter-evans/[email protected]


security:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install safety
pip install truffleHog
curl -sSL https://github.com/zricethezav/gitleaks/releases/download/v8.2.1/gitleaks-linux-amd64.tar.gz | tar -xzf - -C /usr/local/bin gitleaks
npm install -g snyk
npm install -g @actions/core @actions/github
- name: Run Safety
run: |
safety check --full-report
- name: Run truffleHog
run: |
trufflehog filesystem --directory . --json | tee trufflehog_results.json
- name: Run Gitleaks
run: |
gitleaks detect --source . --report-format json --report-path gitleaks_results.json
- name: Run Snyk
run: |
snyk auth ${{ secrets.SNYK_TOKEN }}
snyk test
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: security-reports
path: |
trufflehog_results.json
gitleaks_results.json

0 comments on commit 71d54cc

Please sign in to comment.