Skip to content

Commit

Permalink
ci: cargo-denyのadvisoriesだけcronでの実行にする
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Dec 11, 2024
1 parent 0edf940 commit 4730471
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 16 deletions.
10 changes: 10 additions & 0 deletions .github/actions/install-cargo-deny/action.yml
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
14 changes: 14 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 0 additions & 16 deletions .github/workflows/cargo-deny.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4730471

Please sign in to comment.