Skip to content
Snippets Groups Projects
Verified Commit c76f775d authored by Jan-Niclas Strüwer's avatar Jan-Niclas Strüwer
Browse files

Removed unused scripts

parent 6730900f
Branches
Tags
1 merge request!8Dev
#!/bin/sh
CODE_DIRECTORY=${1}
OUTPUT_DIRECTORY=${2}
# Either build or pull our detekt docker image
# for now we just expect it to be installed
docker run --rm \
-v "${CODE_DIRECTORY}":/code \
-v "${OUTPUT_DIRECTORY}":/detekt \
detekt \
--input /code \
--report sarif:/detekt/report.sarif
\ No newline at end of file
#!/bin/sh
DC_DIRECTORY=${1}/odc
DC_PROJECT="dependency-check scan: ${2}"
DATA_DIRECTORY="/tmp/opencode/data" # TODO: make this configurable !
CACHE_DIRECTORY="/tmp/opencode/data/cache" # TODO: make this configurable !
if [ ! -d "$DATA_DIRECTORY" ]; then
echo "Initially creating persistent directory: $DATA_DIRECTORY"
mkdir -p "$DATA_DIRECTORY"
fi
if [ ! -d "$CACHE_DIRECTORY" ]; then
echo "Initially creating persistent directory: $CACHE_DIRECTORY"
mkdir -p "$CACHE_DIRECTORY"
fi
docker run --rm \
--volume "${2}":/src:z \
--volume "$DATA_DIRECTORY":/usr/share/dependency-check/data:z \
--volume "$DC_DIRECTORY":/odc:z \
odc \
--scan /src \
--format "ALL" \
--project "$DC_PROJECT" \
--data /usr/share/dependency-check/data \
--out /odc
# Use suppression like this: (where /src == $pwd)
# --suppression "/src/security/dependency-check-suppression.xml"
\ No newline at end of file
#!/bin/sh
CODE_DIRECTORY=${1}
OUTPUT_DIRECTORY=${2}
# Either build or pull our detekt docker image
# for now we just expect it to be installed
docker run --rm \
-v "${OUTPUT_DIRECTORY}":/data/results/ \
-v "${CODE_DIRECTORY}":/data/project/ \
jetbrains/qodana-jvm-community
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.