Skip to content

Commit e690aee

Browse files
codebydivineclaude
andcommitted
fix: replace safety CLI with Safety GitHub Action
- Updated security.yml and ci.yml to use pyupio/safety-action@v1 - Replaced direct CLI calls with authenticated GitHub Action - Uses SAFETY_API_KEY secret for authentication - Resolves authentication requirement in newer Safety CLI versions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a9647ed commit e690aee

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ jobs:
8686
- name: Run bandit security scan
8787
run: poetry run bandit -r src/ -f txt
8888

89-
- name: Run safety dependency check
90-
run: poetry run safety scan
89+
- name: Run Safety to check for vulnerabilities
90+
uses: pyupio/safety-action@v1
91+
with:
92+
api-key: ${{ secrets.SAFETY_API_KEY }}
9193

9294
build:
9395
runs-on: ubuntu-latest

.github/workflows/security.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ jobs:
7070
run: |
7171
poetry install --no-interaction --with dev --no-root
7272
73-
- name: Run Safety scan
74-
run: |
75-
poetry run safety scan --output json --save-as safety-results.json || true
73+
- name: Run Safety to check for vulnerabilities
74+
uses: pyupio/safety-action@v1
75+
with:
76+
api-key: ${{ secrets.SAFETY_API_KEY }}
7677

7778
- name: Run Bandit security scan
7879
run: |

0 commit comments

Comments
 (0)