Keep quality cache writable in fresh checkouts
This commit is contained in:
parent
f5e0c991ea
commit
ad87539789
|
|
@ -35,6 +35,7 @@ android_fingerprint_probe="$android_fingerprint_probe_dir/.quality-source-finger
|
||||||
android_metadata_probe="$ROOT/android/play-store/.quality-metadata-$run_id.md"
|
android_metadata_probe="$ROOT/android/play-store/.quality-metadata-$run_id.md"
|
||||||
|
|
||||||
umask 077
|
umask 077
|
||||||
|
mkdir -p "$ROOT/.tools/trivy-cache"
|
||||||
QUALITY_POSTGRES_USER="wnh_quality_$(openssl rand -hex 6)"
|
QUALITY_POSTGRES_USER="wnh_quality_$(openssl rand -hex 6)"
|
||||||
QUALITY_POSTGRES_PASSWORD=$(openssl rand -base64 48 | tr -d '\n')
|
QUALITY_POSTGRES_PASSWORD=$(openssl rand -base64 48 | tr -d '\n')
|
||||||
export QUALITY_POSTGRES_USER QUALITY_POSTGRES_PASSWORD
|
export QUALITY_POSTGRES_USER QUALITY_POSTGRES_PASSWORD
|
||||||
|
|
@ -1648,7 +1649,6 @@ test "$(
|
||||||
test "$(
|
test "$(
|
||||||
grep -c '^kind: NetworkPolicy$' "$scan_dir/rendered-helm.yaml"
|
grep -c '^kind: NetworkPolicy$' "$scan_dir/rendered-helm.yaml"
|
||||||
)" -eq 1
|
)" -eq 1
|
||||||
mkdir -p "$ROOT/.tools/trivy-cache"
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--volume "$scan_dir:/scan:ro" \
|
--volume "$scan_dir:/scan:ro" \
|
||||||
--volume "$ROOT/.tools/trivy-cache:/root/.cache/trivy" \
|
--volume "$ROOT/.tools/trivy-cache:/root/.cache/trivy" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user