-
-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
763 changed files
with
459,449 additions
and
3,048 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,14 @@ | ||
changelog: | ||
categories: | ||
- title: Enhancements 🚀 | ||
labels: | ||
- enhancement | ||
- title: Bug Fixes 🐛 | ||
labels: | ||
- defect | ||
- title: Dependency Updates 🤖 | ||
labels: | ||
- dependencies | ||
- title: Other Changes | ||
labels: | ||
- "*" |
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 |
---|---|---|
@@ -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 |
---|---|---|
|
@@ -45,10 +45,29 @@ jobs: | |
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.ref == 'refs/heads/master' && contains(github.repository, 'DependencyTrack/') }} | ||
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
Oops, something went wrong.