Skip to content

Commit 1a40037

Browse files
authored
Merge branch 'development' into fix/DX-3035-workflow-maven
2 parents 98cd558 + af09bd6 commit 1a40037

File tree

5 files changed

+54
-11
lines changed

5 files changed

+54
-11
lines changed

.github/workflows/check-branch.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Comment PR
11-
if: github.base_ref == 'master' && github.head_ref != 'next'
11+
if: github.base_ref == 'master' && github.head_ref != 'staging'
1212
uses: thollander/actions-comment-pull-request@v2
1313
with:
1414
message: |
15-
We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the next branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch.
15+
We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the staging branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch.
1616
- name: Check branch
17-
if: github.base_ref == 'master' && github.head_ref != 'next'
17+
if: github.base_ref == 'master' && github.head_ref != 'staging'
1818
run: |
19-
echo "ERROR: We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the next branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch."
19+
echo "ERROR: We regret to inform you that you are currently not able to merge your changes into the master branch due to restrictions applied by our SRE team. To proceed with merging your changes, we kindly request that you create a pull request from the staging branch. Our team will then review the changes and work with you to ensure a successful merge into the master branch."
2020
exit 1

.github/workflows/secrets-scan.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Secrets Scan
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
security-secrets:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: '2'
12+
ref: '${{ github.event.pull_request.head.ref }}'
13+
- run: |
14+
git reset --soft HEAD~1
15+
- name: Install Talisman
16+
run: |
17+
# Download Talisman
18+
wget https://github.com/thoughtworks/talisman/releases/download/v1.37.0/talisman_linux_amd64 -O talisman
19+
20+
# Checksum verification
21+
checksum=$(sha256sum ./talisman | awk '{print $1}')
22+
if [ "$checksum" != "8e0ae8bb7b160bf10c4fa1448beb04a32a35e63505b3dddff74a092bccaaa7e4" ]; then exit 1; fi
23+
24+
# Make it executable
25+
chmod +x talisman
26+
- name: Run talisman
27+
run: |
28+
# Run Talisman with the pre-commit hook
29+
./talisman --githook pre-commit

.talismanrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
threshold: medium
2+
fileignoreconfig:
3+
- filename: .github/workflows/secrets-scan.yml
4+
checksum: d79ec3f3288964f7d117b9ad319a54c0ebc152e35f69be8fde95522034fdfb2a
5+
version: "1.0"

pom.xml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,24 @@
201201
<artifactId>slf4j-simple</artifactId>
202202
<version>1.7.36</version>
203203
</dependency>
204-
<!-- https://mvnrepository.com/artifact/io.github.cdimascio/java-dotenv -->
205-
<dependency>
206-
<groupId>io.github.cdimascio</groupId>
207-
<artifactId>java-dotenv</artifactId>
208-
<version>5.2.2</version>
209-
</dependency>
204+
<!-- https://mvnrepository.com/artifact/io.github.cdimascio/java-dotenv -->
205+
<dependency>
206+
<groupId>io.github.cdimascio</groupId>
207+
<artifactId>java-dotenv</artifactId>
208+
<version>5.2.2</version>
209+
</dependency>
210210

211211
</dependencies>
212-
212+
213+
<dependencyManagement>
214+
<dependencies>
215+
<dependency>
216+
<groupId>org.jetbrains.kotlin</groupId>
217+
<artifactId>kotlin-stdlib</artifactId>
218+
<version>2.1.0</version>
219+
</dependency>
220+
</dependencies>
221+
</dependencyManagement>
213222
<build>
214223

215224

src/test/java/com/contentstack/sdk/Credentials.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class Credentials {
1111
.filename(".env") // or ".env" if you rename it
1212
.load();
1313

14+
1415
private static String envChecker() {
1516
String githubActions = System.getenv("GITHUB_ACTIONS");
1617
if (githubActions != null && githubActions.equals("true")) {

0 commit comments

Comments
 (0)