From e747f1dd9cbce26e63a93fbe79bce4aa71ef5df0 Mon Sep 17 00:00:00 2001 From: Aravind Kumar Date: Tue, 6 Oct 2026 17:46:30 +0530 Subject: [PATCH 1/4] Updated codeowners --- CODEOWNERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index ac7dad0..d9f2fb3 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,4 +1,5 @@ * @contentstack/developer-ecosystem-pr-reviewers .github/workflows/ @contentstack/security-admin **/.snyk @contentstack/security-admin -**/CODEOWNERS @contentstack/security-admin \ No newline at end of file +**/CODEOWNERS @contentstack/security-admin +**/.gitguardian.yaml @contentstack/security-admin \ No newline at end of file From 8bcb7451a8d7d76e7951e138737cff5b7a63cbec Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Mon, 26 Oct 2026 16:25:53 +0530 Subject: [PATCH 2/4] Fix: exclude leaked junit from json-simple; drop vintage engine Remove unused junit-vintage-engine (test scope), exclude junit from json-simple; v1.0.4. Co-Authored-By: Claude Sonnet 5.5 --- changelog.md | 4 ++++ pom.xml | 16 ++++++++-------- .../installations/InstallationUnitTests.java | 4 ++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/changelog.md b/changelog.md index 07714f1..3787c7f 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ A brief description of what changes project contains +#### v1.0.4 + +- Fixed snyk issue: excluded the vulnerable transitive `junit:junit` 4.10 (CVE-2020-15250) that `json-simple` declares as a compile dependency, and removed the unused `junit-vintage-engine` test dependency (tests migrated to JUnit Jupiter assertions) + #### v1.0.3 - Fixed snyk issues diff --git a/pom.xml b/pom.xml index 5d56daa..c6ac20b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.contentstack.sdk marketplace - 1.0.3 + 1.0.4 Contentstack Marketplace Java SDK Contentstack Java Management SDK for Content Management API https://github.com/contentstack/contentstack-management-java/ @@ -29,7 +29,6 @@ 1.18.36 5.8.0 5.8.0-M1 - 5.8.0 2.10.1 4.0.0-M9 3.1.0 @@ -160,17 +159,18 @@ ${junit-jupiter.version} test - - org.junit.vintage - junit-vintage-engine - ${junit-vintage-engine.version} - test - com.googlecode.json-simple json-simple 1.1.1 compile + + + + junit + junit + + org.jetbrains.kotlin diff --git a/src/test/java/com/contentstack/sdk/marketplace/installations/InstallationUnitTests.java b/src/test/java/com/contentstack/sdk/marketplace/installations/InstallationUnitTests.java index f4f427e..90dbb77 100644 --- a/src/test/java/com/contentstack/sdk/marketplace/installations/InstallationUnitTests.java +++ b/src/test/java/com/contentstack/sdk/marketplace/installations/InstallationUnitTests.java @@ -10,8 +10,8 @@ import java.util.HashMap; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThrows; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; @Tag("unit") class InstallationUnitTests { From c0f5a9b991ee66fb900479bed800e0f0b6c1bb18 Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Mon, 2 Nov 2026 12:05:47 +0530 Subject: [PATCH 3/4] ci: grant contents write to the build job for dependency submission The "Update dependency graph" step submits a snapshot to the GitHub dependency graph and fails with HTTP 403 "Resource not accessible by integration" because the token is read-only. The submission action needs contents: write, so declare it on the job. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/maven.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 001e7b5..55b5425 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,6 +18,8 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v3 From 897dcc6587238d7df5c1ad26cff4efe5bdf619dc Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Mon, 2 Nov 2026 16:04:40 +0530 Subject: [PATCH 4/4] ci: pass GitHub context to run steps via env vars to avoid script injection Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/back-merge-pr.yml | 5 +++-- .github/workflows/check-version-bump.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/back-merge-pr.yml b/.github/workflows/back-merge-pr.yml index bc6b802..b93eb9e 100644 --- a/.github/workflows/back-merge-pr.yml +++ b/.github/workflows/back-merge-pr.yml @@ -22,6 +22,7 @@ jobs: - name: Open back-merge PR if needed env: GH_TOKEN: ${{ github.token }} + REPO: ${{ github.repository }} run: | set -euo pipefail BASE_BRANCH="development" @@ -37,7 +38,7 @@ jobs: exit 0 fi - EXISTING=$(gh pr list --repo "${{ github.repository }}" \ + EXISTING=$(gh pr list --repo "$REPO" \ --base "$BASE_BRANCH" \ --head "$SOURCE_BRANCH" \ --state open \ @@ -49,7 +50,7 @@ jobs: exit 0 fi - gh pr create --repo "${{ github.repository }}" \ + gh pr create --repo "$REPO" \ --base "$BASE_BRANCH" \ --head "$SOURCE_BRANCH" \ --title "chore: back-merge main into development" \ diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml index b2ecb9d..6907586 100644 --- a/.github/workflows/check-version-bump.yml +++ b/.github/workflows/check-version-bump.yml @@ -15,10 +15,11 @@ jobs: - name: Detect changed files and version bump id: detect + env: + BASE_SHA: ${{ github.event.pull_request.base.sha }} + HEAD_SHA: ${{ github.event.pull_request.head.sha }} run: | set -euo pipefail - BASE_SHA="${{ github.event.pull_request.base.sha }}" - HEAD_SHA="${{ github.event.pull_request.head.sha }}" FILES=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA") VERSION_FILES_CHANGED=false