Skip to content

Commit

Permalink
[CI] Remove scan from ci-pr main
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc committed Nov 8, 2024
1 parent f18e38d commit 392081b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
if: ${{ github.base_ref != 'main' }}
uses: actions/setup-java@v1
with:
java-version: ${{ needs.parameters.outputs.jdk_build }}
java-version: 17
- name: 'Configure: Install GraalVM'
if: ${{ github.base_ref == 'main' }}
uses: graalvm/setup-graalvm@v1
Expand Down Expand Up @@ -92,13 +92,6 @@ jobs:
exit $RC
fi
fi
- name: 'Configure: Install Trivy'
uses: ./.github/actions/install-trivy
- name: 'Action: Trivy scan'
shell: bash
run: |
BUILD_DIR=$(realpath $MAIN_PATH)
$BUILD_DIR/scan-folders.sh table
- name: 'Upload: Error logs'
if: ${{ failure() }}
uses: actions/upload-artifact@v3
Expand Down
20 changes: 2 additions & 18 deletions scripts/determine-modules-changed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,10 @@ function addItem() {
fi
}
MODIFIED="$*"
ALL_MODULES=$(find . -name "pom.xml" -not -path './spring-cloud-dataflow-apps-plugin/*' -type f -exec dirname '{}' \; | sed 's/\.\///' | sort -r)
MODULES=
for file in $MODIFIED; do
FILE=$(realpath $file)
echo "$file was changed"
for ITEM in $ALL_MODULES; do
if [[ "$ITEM" != "." ]] && [[ "$file" == *"$ITEM"* ]]; then
echo "Matched $ITEM"
HAS_ITEM=$(itemInModules)
if ((HAS_ITEM == 0)); then
echo "Add:$ITEM"
MODULES=$(addItem "$ITEM")
fi
break
fi
done
done
ALL_MODULES=$(find . -name "pom.xml" -type f -exec dirname '{}' \; | sed 's/\.\///' | sort -r)
echo "[" >modules.json
COUNT=0
for module in $MODULES; do
for module in $ALL_MODULES; do
if ((COUNT > 0)); then
echo "," >> modules.json
fi
Expand Down

0 comments on commit 392081b

Please sign in to comment.