Skip to content

Commit

Permalink
ACS-9044 POC - keep reduced alfresco.war in target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraAspery committed Dec 13, 2024
1 parent 61491d4 commit 074af72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci/remove-sast-exclusions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"

# Copy alfresco.war file
/bin/cp -f ./packaging/war/target/alfresco.war ./scripts/ci/alfresco-reduced.war
/bin/cp -f ./packaging/war/target/alfresco.war ./packaging/war/target/alfresco-reduced.war

# Remove files to be excluded from Veracode SAST
exclusions="./scripts/ci/SAST-exclusion-list.txt"
Expand All @@ -13,12 +13,12 @@ then
while read -r line
do
echo "Removing WEB-INF/lib/$line"
zip -d ./scripts/ci/alfresco-reduced.war "WEB-INF/lib/$line" || true
zip -d ./packaging/war/target/alfresco-reduced.war "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 =========================="
echo "=========================== Finishing Excluding Files from Veracode SAST =========================="

0 comments on commit 074af72

Please sign in to comment.