cargo-audit/action.yml
dzu 9009a3acda
All checks were successful
Build and upload the container / build-and-upload (push) Successful in 32m2s
lock cache action revision
2026-02-21 11:19:58 +00:00

24 lines
719 B
YAML

name: Cargo audit
description: 'Runs cargo-audit on the provided lockfile'
inputs:
lock-path:
description: Path to the `Cargo.lock` to audit
default: Cargo.lock
required: false
runs:
using: composite
steps:
- name: Load the database from cache
uses: https://git.dzuchun.ing/actions/cache-load@v1
with:
path: ${{ forgejo.action_path }}/database
key: cargo-audit-database
- run: ${{ forgejo.action_path }}/main.sh
shell: bash
env:
DATABASE_PATH: ${{ forgejo.action_path }}/database
- name: Save the database to cache
uses: https://git.dzuchun.ing/actions/cache-save@v1
with:
path: ${{ forgejo.action_path }}/database
key: cargo-audit-database