vaultwarden/docker/audit/exp/patch_and_run.sh
kalvinparker 2e6b09293e Add audit output files and update dependencies
- Created new output files for OpenID build and deny logs.
- Added JSON and text output for reqwest tree post native.
- Implemented upgrade logs and error handling for build and deny processes.
- Updated webauthn and webpki dependency trees in respective output files.
- Addressed license rejection issues in upgrade process.
- Included error logs for webauthn search and webpki tree post native.
2025-11-13 11:57:11 +00:00

19 lines
609 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Safe copy of workspace
cp -a /workspace /tmp/wrk_copy
cd /tmp/wrk_copy
# Try bumping webauthn-rs to 0.6 in the copy (non-destructive)
perl -0777 -pe 's/webauthn-rs\s*=\s*"[^"]+"/webauthn-rs = "0.6"/g' -i Cargo.toml || true
# Attempt to update that package only
/usr/local/cargo/bin/cargo update -p webauthn-rs || true
# Run cargo-deny licenses check and capture outputs
/usr/local/cargo/bin/cargo deny --manifest-path Cargo.toml --format json check licenses > /tmp/deny_licenses.json 2>/tmp/deny_licenses.err || true
# Record done marker
echo done > /tmp/exp.done