Files
alfresco-community-repo/scripts/ci/remove-sast-exclusions.sh
Eva Vasques 8518a35212 Prepare version 23.2.3 (#3279)
* Update revision
* Set version to 23.2.3.1-SNAPSHOT
* Update license headers
* Upgrade Build Tools
2025-03-20 18:15:44 +00:00

25 lines
670 B
Bash
Executable File

#!/usr/bin/env bash
echo "=========================== Excluding Files from Veracode SAST ==========================="
set -ex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
# Copy war file to temporary directory
cp -f "$1" "$2"
# Remove files to be excluded from Veracode SAST
exclusions="./scripts/ci/SAST-exclusion-list.txt"
if [ -e $exclusions ]
then
while read -r line
do
echo "Removing WEB-INF/lib/$line"
zip -d "$2" "WEB-INF/lib/$line" || true
done < "$exclusions"
else
echo "No files to be excluded from SAST"
fi
popd
set +ex
echo "=========================== Finishing Excluding Files from Veracode SAST =========================="