Skip to content

Commit

Permalink
Merge pull request #45 from jaydenchee97/feature
Browse files Browse the repository at this point in the history
update amplify yml
  • Loading branch information
jaydenchee97 authored Aug 29, 2024
2 parents 2593cd7 + 5442efe commit 11d05d0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,40 @@ frontend:
else
npm install
fi
- echo "Installing Java 11"
- wget https://download.bell-sw.com/java/11.0.18+10/bellsoft-jdk11.0.18+10-linux-amd64.tar.gz
- tar -xzf bellsoft-jdk11.0.18+10-linux-amd64.tar.gz
- export JAVA_HOME=$(pwd)/jdk-11.0.18
- export PATH=$JAVA_HOME/bin:$PATH
- java -version # Verify the installation

build:
commands:
- echo "EXPO_PUBLIC_GOOGLE_MAPS_API_KEY=$GOOGLE_MAPS_API_KEY" >> .env
- npx expo export --platform web

postBuild:
commands:
- echo "Running OWASP Dependency-Check"
- wget https://github.com/jeremylong/DependencyCheck/releases/download/v8.3.2/dependency-check-8.3.2-release.zip
- unzip dependency-check-8.3.2-release.zip
- ./dependency-check/bin/dependency-check.sh --project MyProject --out ./dependency-report --scan ./unirent
- if grep -q '<vulnerability>' ./dependency-report/dependency-check-report.xml; then
echo "Vulnerabilities found in dependencies";
exit 1;
else
echo "No vulnerabilities found.";
fi

artifacts:
baseDirectory: dist
files:
- "**/*"
dependencyReport:
baseDirectory: ./dependency-report
files:
- dependency-check-report.html

cache:
paths:
- node_modules/**/*
Expand Down

0 comments on commit 11d05d0

Please sign in to comment.