Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/back-merge-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 \
Expand All @@ -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" \
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/check-version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* @contentstack/developer-ecosystem-pr-reviewers
.github/workflows/ @contentstack/security-admin
**/.snyk @contentstack/security-admin
**/CODEOWNERS @contentstack/security-admin
**/CODEOWNERS @contentstack/security-admin
**/.gitguardian.yaml @contentstack/security-admin
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.contentstack.sdk</groupId>
<artifactId>marketplace</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<name>Contentstack Marketplace Java SDK</name>
<description>Contentstack Java Management SDK for Content Management API</description>
<url>https://github.com/contentstack/contentstack-management-java/</url>
Expand All @@ -29,7 +29,6 @@
<lombok-source.version>1.18.36</lombok-source.version>
<junit-jupiter.version>5.8.0</junit-jupiter.version>
<junit-jupiter-engine.version>5.8.0-M1</junit-jupiter-engine.version>
<junit-vintage-engine.version>5.8.0</junit-vintage-engine.version>
<gson.version>2.10.1</gson.version>
<maven-site-plugin.version>4.0.0-M9</maven-site-plugin.version>
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
Expand Down Expand Up @@ -160,17 +159,18 @@
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit-vintage-engine.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<scope>compile</scope>
<exclusions>
<!-- json-simple declares junit 4.10 as a compile dependency (CVE-2020-15250); it is not needed at runtime -->
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading