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