mirror of
https://github.com/storytold/artcraft-services.git
synced 2026-11-30 18:14:02 +01:00
Resolves the bundled-asset and script security findings SonarCloud reports outside vendored code. - **Web:S5725** `frontend/api_docs.html` — Swagger UI was loaded over protocol-relative `//unpkg.com` URLs with no integrity check. Now `https://` plus `integrity`/`crossorigin` on all three assets. - **shell:S6505** the three remaining `npx` calls in Netlify/dev scripts now pass `--no-install`, so they run the pinned local binary instead of downloading and running one. - **secrets:S6418** removed the long-dead MinIO access/secret key pair commented out in the deprecated inference-job env file. - **python:S4790** the Gravatar hash is an MD5 identifier required by Gravatar's URL scheme, so it is marked `usedforsecurity=False`. Verified: file contents diffed against the previous URLs; no build-affecting script semantics changed (`--no-install` only rejects on-demand downloads). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * API documentation resources now load over HTTPS with integrity verification. * Account-copying operations preserve their existing output while supporting environments that restrict security-related hashing. * **Chores** * Build and cleanup commands use locally available tooling and continue cleanup if the reset command fails. * Removed commented-out credential settings from the development configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
65 lines
2.3 KiB
Bash
Executable File
65 lines
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
echo "Removing Build directories..."
|
|
rm -rf ./apps/editor2d/dist/
|
|
rm -rf ./libs/api/dist/
|
|
rm -rf ./libs/build-env/dist/
|
|
rm -rf ./libs/common/dist/
|
|
rm -rf ./libs/components/action-reminder-modal/dist/
|
|
rm -rf ./libs/components/badge/dist/
|
|
rm -rf ./libs/components/button-dropdown/dist/
|
|
rm -rf ./libs/components/button-icon-select/dist/
|
|
rm -rf ./libs/components/button-icon/dist/
|
|
rm -rf ./libs/components/button-link/dist/
|
|
rm -rf ./libs/components/button/dist/
|
|
rm -rf ./libs/components/camera-settings-modal/dist/
|
|
rm -rf ./libs/components/close-button/dist/
|
|
rm -rf ./libs/components/create-3d-modal/dist/
|
|
rm -rf ./libs/components/demo-modal/dist/
|
|
rm -rf ./libs/components/file-uploader/dist/
|
|
rm -rf ./libs/components/gallery-modal/dist/
|
|
rm -rf ./libs/components/gravatar/dist/
|
|
rm -rf ./libs/components/image-input/dist/
|
|
rm -rf ./libs/components/input/dist/
|
|
rm -rf ./libs/components/label/dist/
|
|
rm -rf ./libs/components/lightbox-modal/dist/
|
|
rm -rf ./libs/components/list-dropdown/dist/
|
|
rm -rf ./libs/components/loading-spinner/dist/
|
|
rm -rf ./libs/components/loading/dist/
|
|
rm -rf ./libs/components/modal/dist/
|
|
rm -rf ./libs/components/model-selector/dist/
|
|
rm -rf ./libs/components/pagination/dist/
|
|
rm -rf ./libs/components/popover/dist/
|
|
rm -rf ./libs/components/pricing-modal/dist/
|
|
rm -rf ./libs/components/promptbox/dist/
|
|
rm -rf ./libs/components/search/dist/
|
|
rm -rf ./libs/components/select/dist/
|
|
rm -rf ./libs/components/slider-v2/dist/
|
|
rm -rf ./libs/components/switch/dist/
|
|
rm -rf ./libs/components/tab-selector/dist/
|
|
rm -rf ./libs/components/toaster/dist/
|
|
rm -rf ./libs/components/tooltip/dist/
|
|
rm -rf ./libs/components/transition-dialogue/dist/
|
|
rm -rf ./libs/components/upload-modal/dist/
|
|
rm -rf ./libs/login/dist/
|
|
rm -rf ./libs/model-list/dist/
|
|
rm -rf ./libs/soundboard/dist/
|
|
rm -rf ./libs/tauri-api/dist/
|
|
rm -rf ./libs/tauri-utils/dist/
|
|
rm -rf ./libs/analytics/google-analytics/dist/
|
|
rm -rf ./libs/state/subscription/dist/
|
|
|
|
echo "Resetting NX..."
|
|
# --no-install keeps npx from fetching a package, but this cleanup must still finish when the
|
|
# local Nx is already gone (the case it exists for).
|
|
npx --no-install nx reset || echo "Skipping Nx reset: local Nx is not installed"
|
|
|
|
echo "Removing NX cache directory..."
|
|
rm -rf ./.nx/
|
|
|
|
echo "Removing Node Modules directories..."
|
|
rm -rf ./node_modules/
|
|
|