-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into issue-1092-replace-custom-vers
- Loading branch information
Showing
392 changed files
with
1,992 additions
and
1,234 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
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 |
---|---|---|
|
@@ -27,10 +27,10 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4.0.0 | ||
uses: actions/setup-java@v4.2.1 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
java-version: '21' | ||
cache: 'maven' | ||
|
||
- name: Setup CycloneDX CLI | ||
|
@@ -70,7 +70,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Download Artifacts | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: assembled-wars | ||
path: target | ||
|
@@ -79,13 +79,13 @@ jobs: | |
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3.0.0 | ||
uses: docker/setup-buildx-action@v3.2.0 | ||
id: buildx | ||
with: | ||
install: true | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3.0.0 | ||
uses: docker/login-action@v3.1.0 | ||
if: ${{ inputs.publish-container }} | ||
with: | ||
registry: ghcr.io | ||
|
@@ -102,7 +102,7 @@ jobs: | |
echo "tags=${TAGS}" >> $GITHUB_OUTPUT | ||
- name: Build multi-arch Container Image | ||
uses: docker/build-push-action@v5.1.0 | ||
uses: docker/build-push-action@v5.3.0 | ||
with: | ||
tags: ${{ steps.tags.outputs.tags }} | ||
build-args: |- | ||
|
@@ -116,7 +116,7 @@ jobs: | |
|
||
- name: Run Trivy Vulnerability Scanner | ||
if: ${{ inputs.publish-container }} | ||
uses: aquasecurity/trivy-action@0.17.0 | ||
uses: aquasecurity/trivy-action@0.18.0 | ||
with: | ||
image-ref: ghcr.io/dependencytrack/hyades-apiserver:${{ inputs.app-version }} | ||
format: 'sarif' | ||
|
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Download Artifacts | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].4 | ||
with: | ||
name: assembled-wars | ||
path: target | ||
|
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 |
---|---|---|
|
@@ -54,10 +54,10 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4.0.0 | ||
uses: actions/setup-java@v4.2.1 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
java-version: '21' | ||
cache: 'maven' | ||
|
||
- name: Set Version | ||
|
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,32 @@ | ||
name: Report PR Test Coverage | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- Tests CI | ||
types: | ||
- completed | ||
|
||
permissions: { } | ||
|
||
jobs: | ||
publish: | ||
name: Report Coverage | ||
runs-on: ubuntu-latest | ||
if: |- | ||
github.event.workflow_run.event == 'pull_request' | ||
&& github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Download PR test coverage report | ||
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # tag=v4.1.4 | ||
with: | ||
name: pr-test-coverage-report | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
run-id: ${{ github.event.workflow_run.id }} | ||
- name: Report Coverage to Codacy | ||
run: |- | ||
bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ | ||
--project-token ${{ secrets.CODACY_PROJECT_TOKEN }} \ | ||
--commit-uuid ${{ github.event.workflow_run.head_sha }} \ | ||
--coverage-reports ./target/jacoco-ut/jacoco.xml \ | ||
--language Java |
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 |
---|---|---|
|
@@ -34,10 +34,10 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4.0.0 | ||
uses: actions/setup-java@v4.2.1 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
java-version: '21' | ||
cache: 'maven' | ||
|
||
- name: Execute unit tests | ||
|
@@ -47,3 +47,30 @@ jobs: | |
run: |- | ||
mvn clean | ||
mvn test -P enhance | ||
# Publishing coverage to Codacy is only possible for builds of push events. | ||
# PRs from forks do not get access to repository secrets. | ||
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | ||
- name: Publish test coverage | ||
if: ${{ github.event_name != 'pull_request' && github.repository_owner == 'DependencyTrack' }} | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
language: Java | ||
coverage-reports: target/jacoco-ut/jacoco.xml | ||
|
||
- name: Save PR details | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: |- | ||
echo ${{ github.sha }} > pr-commit.txt | ||
echo ${{ github.event.number }} > pr-number.txt | ||
- name: Upload PR test coverage report | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # tag=v4.3.1 | ||
with: | ||
name: pr-test-coverage-report | ||
path: |- | ||
pr-commit.txt | ||
pr-number.txt | ||
target/jacoco-ut/jacoco.xml |
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
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
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
Oops, something went wrong.