All checks were successful
Build and upload the container / build-and-upload (push) Successful in 27m18s
24 lines
721 B
YAML
24 lines
721 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.1
|
|
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
|