feat: change to setup-maven-action
This commit is contained in:
parent
d15dc34811
commit
121253786d
1 changed files with 10 additions and 19 deletions
29
action.yml
29
action.yml
|
@ -52,10 +52,15 @@ runs:
|
|||
with:
|
||||
syft-version: "v1.18.1"
|
||||
|
||||
- name: "maven-settings-xml-action"
|
||||
uses: "https://github.com/whelk-io/maven-settings-xml-action@v22"
|
||||
- name: "Setup Java and Maven"
|
||||
uses: "https://github.com/s4u/setup-maven-action@v1.18.0"
|
||||
with:
|
||||
repositories: >
|
||||
checkout-fetch-depth: 0
|
||||
java-distribution: "temurin"
|
||||
java-version: 21
|
||||
cache: "maven"
|
||||
maven-version: 3.9.9
|
||||
settings-repositories: >
|
||||
[
|
||||
{
|
||||
"id": "maven-releases",
|
||||
|
@ -88,7 +93,7 @@ runs:
|
|||
}
|
||||
}
|
||||
]
|
||||
servers: >
|
||||
settings-servers: >
|
||||
[
|
||||
{
|
||||
"id": "maven-group",
|
||||
|
@ -111,7 +116,7 @@ runs:
|
|||
"password": "${{ env.VULNZ_PASSWORD }}"
|
||||
}
|
||||
]
|
||||
mirrors: >
|
||||
settings-mirrors: >
|
||||
[
|
||||
{
|
||||
"id": "maven-group",
|
||||
|
@ -120,20 +125,6 @@ runs:
|
|||
"url": "https://nexus.w9r.dev/repository/maven-group/"
|
||||
}
|
||||
]
|
||||
plugin_groups: >
|
||||
[
|
||||
"org.sonarsource.scanner.maven"
|
||||
]
|
||||
output_file: /root/.m2/settings.xml
|
||||
|
||||
- name: "Setup Java"
|
||||
uses: "https://github.com/actions/setup-java@v4"
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: 21
|
||||
cache: "maven"
|
||||
check-latest: true
|
||||
|
||||
|
||||
- name: "Import Commit Signing GPG key"
|
||||
id: "import-gpg"
|
||||
|
|
Loading…
Add table
Reference in a new issue