From 4730471ee4ab520259079ca59d570a37adb3bd3c Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Thu, 12 Dec 2024 04:22:18 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20cargo-deny=E3=81=AE`advisories`=E3=81=A0?= =?UTF-8?q?=E3=81=91cron=E3=81=A7=E3=81=AE=E5=AE=9F=E8=A1=8C=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/install-cargo-deny/action.yml | 10 ++++++++++ .github/workflows/audit.yml | 14 ++++++++++++++ .github/workflows/cargo-deny.yml | 16 ---------------- .github/workflows/licenses.yml | 14 ++++++++++++++ 4 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 .github/actions/install-cargo-deny/action.yml create mode 100644 .github/workflows/audit.yml delete mode 100644 .github/workflows/cargo-deny.yml create mode 100644 .github/workflows/licenses.yml diff --git a/.github/actions/install-cargo-deny/action.yml b/.github/actions/install-cargo-deny/action.yml new file mode 100644 index 000000000..7a26c016d --- /dev/null +++ b/.github/actions/install-cargo-deny/action.yml @@ -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 diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 000000000..db1303011 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,14 @@ +name: audit +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 diff --git a/.github/workflows/cargo-deny.yml b/.github/workflows/cargo-deny.yml deleted file mode 100644 index a3601b28d..000000000 --- a/.github/workflows/cargo-deny.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: cargo-deny -on: - push: - branches: - - main -jobs: - cargo-deny: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - 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 - - name: cargo-deny - run: cargo deny --all-features check diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml new file mode 100644 index 000000000..ccc4f8fe7 --- /dev/null +++ b/.github/workflows/licenses.yml @@ -0,0 +1,14 @@ +name: licenses +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