Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature #54

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/owasp-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:

- name: Run OWASP Dependency-Check
run: |
./dependency-check/bin/dependency-check.sh --project MyProject --out ./dependency-report --scan ./
./dependency-check/bin/dependency-check.sh --project UniRent --out ./dependency-report --scan ./

- name: Upload Dependency-Check Report
uses: actions/upload-artifact@v3
with:
name: dependency-check-report
path: ./dependency-report/dependency-check-report.html
path: ./dependency-report/dependency-check-report.html
27 changes: 0 additions & 27 deletions amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,14 @@ 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 "Running OWASP Dependency-Check"
- wget https://github.com/jeremylong/DependencyCheck/releases/download/v10.0.3/dependency-check-10.0.3-release.zip
- unzip dependency-check-10.0.3-release.zip
- ls -al
- ./dependency-check/bin/dependency-check.sh --project UniRent --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

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

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

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