-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: cargo-denyの
advisories
だけcronでの実行にする (#893)
`cargo-deny`ワークフローを`licenses`と`audit`に分離し、後者を毎日のcron 実行とする。 RustSecへの登録によって「何もしていないのにCIが落ちた」ケースが最近増え てきたため。 Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
- Loading branch information
Showing
4 changed files
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Install cargo-deny | ||
description: cargo-denyをインストールする。 | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install cargo-binstall | ||
uses: taiki-e/install-action@cargo-binstall | ||
- name: Install cargo-deny | ||
run: cargo binstall cargo-deny@^0.16 --no-confirm --log-level debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 依存ライブラリを監査する。 | ||
# | ||
# RustSec Advisory Databaseに登録された、あるいは単にヤンクされたクレートを検出する。 | ||
# 検出されるものは脆弱性(`vulnerability`)のみとは限らない。 | ||
# 依存ライブラリが単に"unmaintained"とされたりヤンクされたりしても反応する。 | ||
|
||
name: audit | ||
|
||
# データベースへの登録とクレートのヤンクはこちらの依存ライブラリの編集と関係なく起きるため、`push` | ||
# と`pull_request`はトリガーにしない。 | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 15 * * *' | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install cargo-deny | ||
uses: ./.github/actions/install-cargo-deny | ||
- name: cargo-deny | ||
run: cargo deny --all-features check -s advisories |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 依存ライブラリのライセンスを確認する。 | ||
# | ||
# `advisories`以外についてcargo-denyを実行する。 | ||
|
||
name: licenses | ||
|
||
# 外部からの貢献者の負担を減らすため、PR時点では不適合になることを許容する。その代わりmainブランチで | ||
# は毎回本ワークフローを実行する。 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
licenses: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install cargo-deny | ||
uses: ./.github/actions/install-cargo-deny | ||
- name: cargo-deny | ||
run: cargo deny --all-features check -s bans licenses sources |