-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #531 from the-qa-company/master
Sync master into dev
- Loading branch information
Showing
8 changed files
with
79 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Scan | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-scan | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
name: Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: 17 | ||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache-dependency-path: qendpoint-frontend/package-lock.json | ||
- name: Install frontend dependencies | ||
run: npm ci --legacy-peer-deps | ||
working-directory: qendpoint-frontend | ||
- name: Compiling frontend | ||
run: npm run build --if-present | ||
working-directory: qendpoint-frontend | ||
- name: Put frontend in backend | ||
run: | | ||
mkdir -p qendpoint-backend/src/main/resources/static/ | ||
cp -r qendpoint-frontend/build/* qendpoint-backend/src/main/resources/static/ | ||
- name: Compile qendpoint | ||
run: mvn install -DskipTests | ||
- name: move endpoint | ||
run: mv qendpoint-backend/target/qendpoint-*-exec.jar qendpoint.jar | ||
- name: Build an image from Dockerfile | ||
run: 'docker build -t docker.io/the-qa-company/qendpoint:${{ github.sha }} -f scripts/Dockerfile .' | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.28.0 | ||
with: | ||
image-ref: 'docker.io/the-qa-company/qendpoint:${{ github.sha }}' | ||
format: 'table' | ||
exit-code: '0' | ||
ignore-unfixed: true | ||
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
- update rdf4j to 5.1.0 | ||
- add lucene option to set thresholds (#485) | ||
- fix issue with bitmap not enabled (#506) | ||
- add reload dl (#499) | ||
- add bounds to errors (#498) | ||
- cache constants in query optimiser (#527) | ||
- update spring to 3.4.0 (#518) | ||
- remove rdf4j solr from the backend dependencies (#518) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters