You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
609 B
18 lines
609 B
#!/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
|
|
|