Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Safetyの代わりにpip-auditを使う #1519

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
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
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]
Hiroshiba marked this conversation as resolved.
Show resolved Hide resolved
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
Loading