From e89a08257fe4105172c1fb4c26dbf7e87823990c Mon Sep 17 00:00:00 2001 From: jgaworecki Date: Wed, 18 Jun 2025 13:36:52 +0200 Subject: [PATCH 1/5] Make secret scanning method public --- pom.xml | 2 +- src/main/java/org/kohsuke/github/GHRepository.java | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 927b6d1675..19d3994a54 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.327 + 1.328 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index aa6d7fcdc0..210ee31307 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -3516,7 +3516,14 @@ public PagedIterable listSecretScanningAlerts(GHSecretSca return listSecretScanningAlerts(Collections.singletonMap("state", state.name().toLowerCase())); } - private PagedIterable listSecretScanningAlerts(Map filters) { + /** + * Lists the secret scanning alerts for this repository filtered based on passed query params + * + * @param filters + * query params + * @return the paged iterable + */ + public PagedIterable listSecretScanningAlerts(Map filters) { return new GHSecretScanningAlertsIterable(this, root().createRequest().withUrlPath(getApiTailUrl("secret-scanning/alerts")).with(filters).build()); } From 394cd87266d4376511ddb8124ef7ee214eaa9e60 Mon Sep 17 00:00:00 2001 From: jgaworecki Date: Thu, 26 Jun 2025 16:41:50 +0200 Subject: [PATCH 2/5] Make secret scanning method public --- src/main/java/org/kohsuke/github/GHRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java index 210ee31307..f618dcbe31 100644 --- a/src/main/java/org/kohsuke/github/GHRepository.java +++ b/src/main/java/org/kohsuke/github/GHRepository.java @@ -3520,7 +3520,7 @@ public PagedIterable listSecretScanningAlerts(GHSecretSca * Lists the secret scanning alerts for this repository filtered based on passed query params * * @param filters - * query params + * query param passed to request * @return the paged iterable */ public PagedIterable listSecretScanningAlerts(Map filters) { From 19a4d32ae97c2f3e44e1ceed125dab5727b92936 Mon Sep 17 00:00:00 2001 From: jgaworecki Date: Thu, 26 Jun 2025 18:19:03 +0200 Subject: [PATCH 3/5] Make secret scanning method public --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 19d3994a54..060c965152 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.kohsuke cortexapps-github-api - 1.328 + 1.329 GitHub API for Java https://github-api.kohsuke.org/ GitHub API for Java From c32e41fa9c08342bc3b74749f1aa442bc2fb8332 Mon Sep 17 00:00:00 2001 From: jgaworecki Date: Thu, 26 Jun 2025 21:59:35 +0200 Subject: [PATCH 4/5] Make secret scanning method public --- .github/workflows/maven-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 3ecfb8df30..ec94889d2e 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -110,9 +110,9 @@ jobs: needs: [build, test-8, test] steps: - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v4 with: - java-version: 8 + java-version: 11 distribution: 'zulu' cache: 'maven' - name: Deploy From 36e4d23605b07eb0ff9b94a85652c6d253b35b11 Mon Sep 17 00:00:00 2001 From: jgaworecki Date: Thu, 26 Jun 2025 22:36:24 +0200 Subject: [PATCH 5/5] Make secret scanning method public --- .github/workflows/maven-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index ec94889d2e..3ecfb8df30 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -110,9 +110,9 @@ jobs: needs: [build, test-8, test] steps: - uses: actions/checkout@v2 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v2 with: - java-version: 11 + java-version: 8 distribution: 'zulu' cache: 'maven' - name: Deploy