diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml
index 2456521..af37c77 100644
--- a/.github/workflows/java-ci.yml
+++ b/.github/workflows/java-ci.yml
@@ -17,9 +17,9 @@ jobs:
java: [8, 11, 17]
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup java
- uses: actions/setup-java@v2
+ uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
distribution: "zulu"
java-version: ${{ matrix.java }}
diff --git a/.github/workflows/maven-deploy.yml b/.github/workflows/maven-deploy.yml
index 4db3a67..363277a 100644
--- a/.github/workflows/maven-deploy.yml
+++ b/.github/workflows/maven-deploy.yml
@@ -7,12 +7,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
+ - name: Set up JDK 11
+ uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
- java-version: 1.8
+ java-version: '11'
+ distribution: 'temurin'
- name: Build with Maven
run: mvn -B package
@@ -24,16 +25,17 @@ jobs:
uses: duosecurity/duo_client_python/.github/actions/sbom-convert@master
- name: Archive SBOM artifacts
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: duo_client_java_sbom
path: spdx.json
- name: Set up Apache Maven Central
- uses: actions/setup-java@v1
+ uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
- java-version: 1.8
- server-id: ossrh
+ java-version: '11'
+ distribution: 'temurin'
+ server-id: central
server-username: MAVEN_USERNAME # env variable for username in deploy
server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
diff --git a/duo-client/pom.xml b/duo-client/pom.xml
index c1a2c29..24dde86 100644
--- a/duo-client/pom.xml
+++ b/duo-client/pom.xml
@@ -148,23 +148,21 @@
release
-
+
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.8
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
true
- ossrh
- https://oss.sonatype.org/
- false
+ central
org.apache.maven.plugins
maven-gpg-plugin
- 1.5
+ 3.2.7
sign-artifacts
@@ -185,7 +183,7 @@
org.apache.maven.plugins
maven-source-plugin
- 2.2.1
+ 3.3.1
attach-sources
@@ -199,7 +197,10 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 2.9.1
+ 3.11.2
+
+ none
+
attach-javadocs