Repo created
This commit is contained in:
parent
75dc487a7a
commit
39c29d175b
6317 changed files with 388324 additions and 2 deletions
31
scripts/ci/run-fluidattacks-scanner.sh
Executable file
31
scripts/ci/run-fluidattacks-scanner.sh
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
function fail() {
|
||||
echo "Error: $*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check if tools are installed
|
||||
command -v docker &> /dev/null || fail "Docker is not installed"
|
||||
|
||||
# Default values
|
||||
debug=false
|
||||
|
||||
# Parse command-line arguments
|
||||
for arg in "$@"; do
|
||||
case $arg in
|
||||
--debug)
|
||||
debug=true
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
fail "Unknown argument: $arg"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "$debug" = true ]; then
|
||||
docker run --rm -v "$(pwd)":/repo -it fluidattacks/cli:latest /bin/bash
|
||||
exit
|
||||
fi
|
||||
docker run --rm -v "$(pwd)":/repo fluidattacks/cli:latest skims scan /repo/config/fluidattacks/config.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue