Skip to content

Commit

Permalink
MNT: Safetyの代わりにpip-auditを使う (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabonerune authored Jan 23, 2025
1 parent 15009db commit d135209
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 246 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-security.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Python 依存パッケージの脆弱性診断を定期的に行う
# NOTE: 公式 Action は API key 等を必要とするため利用しない(https://github.com/pyupio/safety-action/tree/main)

name: test-security

Expand All @@ -24,7 +23,9 @@ jobs:
requirements-suffix: "-dev"

- name: <Test> Check Python dependency security
run: safety check -r requirements.txt -r requirements-dev.txt -r requirements-build.txt -o bare
uses: pypa/[email protected]
with:
inputs: requirements.txt requirements-dev.txt requirements-build.txt

- name: <Deploy> Notify Discord of security testing result
uses: sarisia/actions-status-discord@v1
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ python -m pytest --snapshot-update

### 脆弱性を診断する

`safety` を用いた脆弱性診断により依存パッケージの安全性を確保しています。
`pip-audit` を用いた脆弱性診断により依存パッケージの安全性を確保しています。
シェルで以下のコマンドを実行することで脆弱性が診断されます。

```bash
safety check -r requirements.txt -r requirements-dev.txt -r requirements-build.txt
pip-audit -r requirements.txt -r requirements-dev.txt -r requirements-build.txt
```

## ビルド
Expand Down
Loading

0 comments on commit d135209

Please sign in to comment.