From 2b4fbdd93c820929446c060923a7af61a3ec734c Mon Sep 17 00:00:00 2001 From: cormacdalton <145557886+cormacdalton@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:42:15 +0100 Subject: [PATCH 1/5] Update broken-links.yml --- .github/workflows/broken-links.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/broken-links.yml b/.github/workflows/broken-links.yml index f66a0fd..7bc2628 100644 --- a/.github/workflows/broken-links.yml +++ b/.github/workflows/broken-links.yml @@ -1,20 +1,18 @@ +name: broken links? 'on': push: branches: - "**" schedule: - cron: 0 16 * * * - workflow_dispatch: -name: broken links? + workflow_dispatch: jobs: linkChecker: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Link Checker - id: lc - uses: peter-evans/link-checker@v1.2.2 + uses: lycheeverse/lychee-action@v2.0.2 with: - args: -v -r * -x (mvnrepository) - - name: Fail? - run: 'exit ${{ steps.lc.outputs.exit_code }}' + fail: true From d108802758f048584a009ce88acd42f51c7587cd Mon Sep 17 00:00:00 2001 From: cormacdalton <145557886+cormacdalton@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:43:50 +0100 Subject: [PATCH 2/5] test --- .github/workflows/broken-links.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/broken-links.yml b/.github/workflows/broken-links.yml index 7bc2628..f8bb233 100644 --- a/.github/workflows/broken-links.yml +++ b/.github/workflows/broken-links.yml @@ -1,11 +1,6 @@ name: broken links? 'on': - push: - branches: - - "**" - schedule: - - cron: 0 16 * * * - workflow_dispatch: + pull_request: jobs: linkChecker: runs-on: ubuntu-latest From 42bf9b23339c2d429bb4a6ac22e84a06c2b2c7dd Mon Sep 17 00:00:00 2001 From: cormacdalton <145557886+cormacdalton@users.noreply.github.com> Date: Wed, 10 Sep 2025 16:45:15 +0100 Subject: [PATCH 3/5] Update broken-links.yml --- .github/workflows/broken-links.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/broken-links.yml b/.github/workflows/broken-links.yml index f8bb233..4b44a70 100644 --- a/.github/workflows/broken-links.yml +++ b/.github/workflows/broken-links.yml @@ -1,6 +1,11 @@ name: broken links? 'on': - pull_request: + push: + branches: + - "**" + schedule: + - cron: 0 16 * * * + workflow_dispatch: jobs: linkChecker: runs-on: ubuntu-latest @@ -8,6 +13,6 @@ jobs: - uses: actions/checkout@v3 - name: Link Checker - uses: lycheeverse/lychee-action@v2.0.2 + uses: lycheeverse/lychee-action@v1.8.0 with: fail: true From 0d4a461de0874292cf72a7b3547093f232c24e66 Mon Sep 17 00:00:00 2001 From: cormacdalton <145557886+cormacdalton@users.noreply.github.com> Date: Thu, 11 Sep 2025 15:26:15 +0100 Subject: [PATCH 4/5] Change links to maven central --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6993046..69db634 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![](https://github.com/Mastercard/client-encryption-java/workflows/Build%20&%20Test/badge.svg)](https://github.com/Mastercard/client-encryption-java/actions?query=workflow%3A%22Build+%26+Test%22) [![](https://sonarcloud.io/api/project_badges/measure?project=Mastercard_client-encryption-java&metric=alert_status)](https://sonarcloud.io/dashboard?id=Mastercard_client-encryption-java) [![](https://github.com/Mastercard/client-encryption-java/workflows/broken%20links%3F/badge.svg)](https://github.com/Mastercard/client-encryption-java/actions?query=workflow%3A%22broken+links%3F%22) -[![](https://img.shields.io/maven-central/v/com.mastercard.developer/client-encryption.svg)](https://search.maven.org/artifact/com.mastercard.developer/client-encryption/) +[![](https://img.shields.io/maven-central/v/com.mastercard.developer/client-encryption.svg)](https://central.sonatype.com/artifact/com.mastercard.developer/client-encryption?smo=true) [![](https://www.javadoc.io/badge/com.mastercard.developer/client-encryption.svg?color=blue)](https://www.javadoc.io/doc/com.mastercard.developer/client-encryption) [![](https://img.shields.io/badge/license-MIT-yellow.svg)](https://github.com/Mastercard/client-encryption-java/blob/master/LICENSE) @@ -65,17 +65,17 @@ dependencies { ``` #### Other Dependency Managers -See: https://search.maven.org/artifact/com.mastercard.developer/client-encryption +See: https://search..org/artifact/com.mastercard.developer/client-encryption ### Selecting a JSON Engine This library requires one of the following dependencies to be added to your classpath: -* [Jackson](https://search.maven.org/artifact/com.fasterxml.jackson.core/jackson-databind) 2.5.0+ -* [Google Gson](https://search.maven.org/artifact/com.google.code.gson/gson) 2.3.1+ -* [Json-smart](https://search.maven.org/artifact/net.minidev/json-smart) 2.5.2+ -* [Jettison](https://search.maven.org/artifact/org.codehaus.jettison/jettison) 1.0+ -* [Org JSON](https://search.maven.org/artifact/org.json/json) 20070829+ +* [Jackson](https://central.sonatype.com/artifact/com.fasterxml.jackson.core/jackson-databind?smo=true) 2.5.0+ +* [Google Gson](https://central.sonatype.com/artifact/com.google.code.gson/gson?smo=true) 2.3.1+ +* [Json-smart](https://central.sonatype.com/artifact/net.minidev/json-smart?smo=true) 2.5.2+ +* [Jettison](https://central.sonatype.com/artifact/org.codehaus.jettison/jettison?smo=true) 1.0+ +* [Org JSON](https://central.sonatype.com/artifact/org.json/json?smo=true) 20070829+ You can either let the library choose for you, or force the one to be used by calling `withJsonEngine` on the `JsonParser` class. Example: From ee191368f4bf6fb85de422585228ff412e51740e Mon Sep 17 00:00:00 2001 From: cormacdalton <145557886+cormacdalton@users.noreply.github.com> Date: Thu, 11 Sep 2025 15:27:48 +0100 Subject: [PATCH 5/5] Use full git hash for security --- .github/workflows/broken-links.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/broken-links.yml b/.github/workflows/broken-links.yml index 4b44a70..62999ca 100644 --- a/.github/workflows/broken-links.yml +++ b/.github/workflows/broken-links.yml @@ -13,6 +13,6 @@ jobs: - uses: actions/checkout@v3 - name: Link Checker - uses: lycheeverse/lychee-action@v1.8.0 + uses: lycheeverse/lychee-action@7cd0af4c74a61395d455af97419279d86aafaede with: fail: true