Skip to content

Commit 48b1fd0

Browse files
committed
Merge branch 'develop' into SDMEXT-2853
2 parents 0f99a81 + 557310d commit 48b1fd0

447 files changed

Lines changed: 55956 additions & 620 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Workflow files — any change requires approval from one of the owners below
2+
/.github/ @vibhutikumar07 @yashmeet29
3+
/.github/workflows/ @vibhutikumar07 @yashmeet29

.github/actions/deploy-release/action.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ runs:
2929
steps:
3030
- name: "Echo Inputs"
3131
run: |
32-
echo "user: ${{ inputs.user }}"
3332
echo "profile: ${{ inputs.profile }}"
3433
shell: bash
3534

@@ -45,9 +44,13 @@ runs:
4544

4645
- name: "Import GPG Key"
4746
run: |
48-
echo "${{ inputs.pgp-private-key }}" | gpg --batch --passphrase "$PASSPHRASE" --import
49-
shell: bash
47+
set +x
48+
echo "::add-mask::$PGP_PRIVATE_KEY"
49+
echo "::add-mask::$PASSPHRASE"
50+
echo "$PGP_PRIVATE_KEY" | gpg --batch --passphrase "$PASSPHRASE" --import
51+
shell: bash
5052
env:
53+
PGP_PRIVATE_KEY: ${{ inputs.pgp-private-key }}
5154
PASSPHRASE: ${{ inputs.pgp-passphrase }}
5255

5356
- name: "Ensure Local Repo Directory"
@@ -57,12 +60,17 @@ runs:
5760
shell: bash
5861

5962
- name: Deploy to Maven Central
60-
run: >
61-
mvn -B -ntp --show-version
62-
-Dmaven.install.skip=true
63-
-Dmaven.test.skip=true
64-
-Dgpg.passphrase="$GPG_PASSPHRASE"
65-
-Dgpg.keyname="$GPG_PUB_KEY"
63+
run: |
64+
set +x
65+
echo "::add-mask::$MAVEN_CENTRAL_USER"
66+
echo "::add-mask::$MAVEN_CENTRAL_PASSWORD"
67+
echo "::add-mask::$GPG_PASSPHRASE"
68+
echo "::add-mask::$GPG_PUB_KEY"
69+
mvn -B -ntp --show-version \
70+
-Dmaven.install.skip=true \
71+
-Dmaven.test.skip=true \
72+
-Dgpg.passphrase="$GPG_PASSPHRASE" \
73+
-Dgpg.keyname="$GPG_PUB_KEY" \
6674
clean deploy -P deploy-release
6775
shell: bash
6876
env:

.github/actions/newrelease/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ runs:
2828
- name: Update version
2929
run: |
3030
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
31-
echo $VERSION > cap-notebook/version.txt
31+
echo $VERSION > app/single-tenant/central-space/demoapp/version.txt
3232
mvn --no-transfer-progress versions:set-property -Dproperty=revision -DnewVersion=$VERSION
3333
#chmod +x ensure-license.sh
3434
#./ensure-license.sh
3535
git config --global user.name 'github-actions[bot]'
3636
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3737
git checkout -b develop
38-
git add cap-notebook/version.txt
38+
git add app/single-tenant/central-space/demoapp/version.txt
3939
git commit -am "Update version to $VERSION"
4040
git push --set-upstream origin develop
4141
shell: bash

.github/workflows/SAPUI5_Version_Monitoring.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ on:
88
jobs:
99
update-version:
1010
name: Check and Update SAPUI5 Version
11+
environment: dev
1112
runs-on: ubuntu-latest
1213
permissions:
1314
contents: write
1415
pull-requests: write
1516

1617
steps:
17-
- name: Checkout the develop_deploy branch
18+
- name: Checkout the develop branch
1819
uses: actions/checkout@v6
1920
with:
20-
ref: develop_deploy
21+
ref: develop
2122

2223
- name: Install dependencies
2324
run: |
@@ -26,9 +27,9 @@ jobs:
2627
id: run_script
2728
run: |
2829
#!/bin/bash
29-
30+
3031
# Define the target file
31-
FILE_PATH="cap-notebook/demoapp/app/index.html"
32+
FILE_PATH="app/single-tenant/central-space/demoapp/app/index.html"
3233
3334
# Function to get the latest version and its corresponding latest patch version
3435
fetch_versions() {
@@ -107,5 +108,5 @@ jobs:
107108
Current Version: ${{ steps.run_script.outputs.current_version }}
108109
Latest patch version: ${{ steps.run_script.outputs.latest_version }}
109110
branch: 'update-sapui5-version'
110-
base: develop_deploy
111+
base: develop
111112
assignees: yashmeet29

.github/workflows/blackduck.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616

1717
jobs:
1818
build:
19+
environment: pr-analysis
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Checkout code
@@ -32,19 +33,25 @@ jobs:
3233

3334
- name: Install dependencies
3435
run: |
35-
mvn clean install -P unit-tests -DskipIntegrationTests
36+
mvn clean install -P unit-tests -DskipIntegrationTests
37+
mvn clean install -f app/single-tenant/central-space/demoapp/pom.xml -DskipTests
38+
mvn clean install -f app/multi-tenant/central-space/cloud-cap-samples-java/pom.xml -DskipTests
3639
3740
# - name: Download Synopsys Detect Script
3841
# run: curl --silent -O https://detect.synopsys.com/detect9.sh
3942
- name: Download Black Duck Detect Script
4043
run: curl --silent -O https://detect.blackduck.com/detect9.sh
4144

4245
- name: Run & analyze BlackDuck Scan
46+
env:
47+
BLACKDUCK_TOKEN: ${{ secrets.BLACKDUCK_TOKEN }}
4348
run: |
49+
set +x
50+
echo "::add-mask::$BLACKDUCK_TOKEN"
4451
bash ./detect9.sh -d \
4552
--logging.level.com.synopsys.integration=DEBUG \
4653
--blackduck.url="https://sap.blackducksoftware.com" \
47-
--blackduck.api.token=""${{ secrets.BLACKDUCK_TOKEN }}"" \
54+
--blackduck.api.token="$BLACKDUCK_TOKEN" \
4855
--detect.blackduck.signature.scanner.arguments="--min-scan-interval=0" \
4956
--detect.maven.build.command="install -P unit-tests -DskipIntegrationTests" \
5057
--detect.latest.release.version="9.6.0" \
@@ -56,4 +63,4 @@ jobs:
5663
--detect.project.name="SAP_DOC_MGMT_CAPPLUGIN_JAVA1.0" \
5764
--detect.project.version.name="1.0" \
5865
--detect.code.location.name="SAP_DOC_MGMT_CAPPLUGIN_JAVA1.0/1.0" \
59-
--detect.source.path="/home/runner/work/sdm/sdm/sdm"
66+
--detect.source.path="/home/runner/work/sdm/sdm"

.github/workflows/cfdeploy.yml

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ permissions:
3232

3333
jobs:
3434
Deploy:
35+
environment: dev
3536
runs-on: ubuntu-latest
3637
if: ${{ github.event.inputs.workflow_choice == 'Deploy' }}
3738

@@ -53,18 +54,6 @@ jobs:
5354
mvn clean install -P unit-tests -DskipIntegrationTests
5455
echo "✅ Build and packaging completed successfully!"
5556
56-
- name: Verify and Checkout Deploy Branch 🔄
57-
run: |
58-
git fetch origin
59-
echo "📂 Verifying 'local_deploy' branch..."
60-
if git rev-parse --verify origin/local_deploy; then
61-
git checkout local_deploy
62-
echo "✅ Branch checked out successfully!"
63-
else
64-
echo "❌ Branch 'local_deploy' not found. Please verify the branch name."
65-
exit 1
66-
fi
67-
6857
- name: Set REPOSITORY_ID 🔍
6958
id: set_repository_id
7059
run: |
@@ -84,11 +73,15 @@ jobs:
8473
8574
- name: Prepare and Deploy to Cloud Foundry ☁️
8675
run: |
76+
set +x
77+
echo "::add-mask::$CF_API"
78+
echo "::add-mask::$CF_USER"
79+
echo "::add-mask::$CF_PASSWORD"
80+
echo "::add-mask::$CF_ORG"
8781
echo "🔄 Preparing to deploy..."
8882
echo "Current Branch: 📂"
89-
git branch
9083
pwd
91-
cd /home/runner/work/sdm/sdm/cap-notebook/demoapp/app
84+
cd /home/runner/work/sdm/sdm/app/single-tenant/personal-space/demoapp/app
9285
echo "Changed to app directory 📂"
9386
pwd
9487
@@ -120,14 +113,20 @@ jobs:
120113
cf install-plugin multiapps -f
121114
122115
echo "🔑 Logging into Cloud Foundry..."
123-
cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ github.event.inputs.cf_space }}
116+
cf login -a "$CF_API" -u "$CF_USER" -p "$CF_PASSWORD" -o "$CF_ORG" -s ${{ github.event.inputs.cf_space }} > /dev/null
124117
echo "✅ Logged in successfully!"
125118
126119
echo "🚀 Running cf deploy..."
127120
cf deploy mta_archives/demoappjava_1.0.0.mtar -f
128121
echo "✅ Deployment complete!"
122+
env:
123+
CF_API: ${{ secrets.CF_API }}
124+
CF_USER: ${{ secrets.CF_USER }}
125+
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
126+
CF_ORG: ${{ secrets.CF_ORG }}
129127

130128
SnapshotDeploy:
129+
environment: dev
131130
runs-on: ubuntu-latest
132131
if: ${{ github.event.inputs.workflow_choice == 'Snapshot Deploy' }}
133132

@@ -143,25 +142,13 @@ jobs:
143142
java-version: 21
144143
distribution: 'temurin'
145144

146-
- name: Verify and Checkout Deploy Branch 🔄
147-
run: |
148-
git fetch origin
149-
echo "📂 Verifying 'develop_deploy' branch..."
150-
if git rev-parse --verify origin/develop_deploy; then
151-
git checkout develop_deploy
152-
echo "✅ Branch checked out successfully!"
153-
else
154-
echo "❌ Branch 'develop_deploy' not found. Please verify the branch name."
155-
exit 1
156-
fi
157-
158145
- name: Override cds.services.version (runtime only)
159146
if: ${{ github.event.inputs.cds_services_version != '' }}
160147
env:
161148
TARGET_CDS_SERVICES_VERSION: ${{ github.event.inputs.cds_services_version }}
162149
run: |
163150
echo "Override requested: cds.services.version -> ${TARGET_CDS_SERVICES_VERSION}"
164-
FILES=$(grep -Rl "<cds.services.version>" . | grep pom.xml || true)
151+
FILES=$(grep -Rl "<cds.services.version>" app/single-tenant/central-space/demoapp | grep pom.xml || true)
165152
if [ -z "$FILES" ]; then
166153
echo "No pom.xml files with <cds.services.version> found" >&2; exit 1;
167154
fi
@@ -219,11 +206,15 @@ jobs:
219206

220207
- name: Prepare and Deploy to Cloud Foundry ☁️
221208
run: |
209+
set +x
210+
echo "::add-mask::$CF_API"
211+
echo "::add-mask::$CF_USER"
212+
echo "::add-mask::$CF_PASSWORD"
213+
echo "::add-mask::$CF_ORG"
222214
echo "🔄 Preparing to deploy..."
223215
echo "Current Branch: 📂"
224-
git branch
225216
pwd
226-
cd /home/runner/work/sdm/sdm/cap-notebook/demoapp
217+
cd /home/runner/work/sdm/sdm/app/single-tenant/central-space/demoapp
227218
228219
cd app
229220
echo "🔄 Removing node_modules for fresh install..."
@@ -255,9 +246,14 @@ jobs:
255246
cf install-plugin multiapps -f
256247
257248
echo "🔑 Logging into Cloud Foundry..."
258-
cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ github.event.inputs.cf_space }}
249+
cf login -a "$CF_API" -u "$CF_USER" -p "$CF_PASSWORD" -o "$CF_ORG" -s ${{ github.event.inputs.cf_space }} > /dev/null
259250
echo "✅ Logged in successfully!"
260251
261252
echo "🚀 Running cf deploy..."
262253
cf deploy mta_archives/demoappjava_1.0.0.mtar -f
263254
echo "✅ Deployment complete!"
255+
env:
256+
CF_API: ${{ secrets.CF_API }}
257+
CF_USER: ${{ secrets.CF_USER }}
258+
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
259+
CF_ORG: ${{ secrets.CF_ORG }}

.github/workflows/demo-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
build:
10+
environment: dev
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v4

.github/workflows/internalArticatory.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,17 @@ jobs:
8787

8888
- name: Verify artifact in Artifactory
8989
if: ${{ endsWith(steps.bump-version.outputs.updated_version || steps.read-revision.outputs.updated_version, '-SNAPSHOT') }}
90+
env:
91+
CAP_DEPLOYMENT_USER: ${{ secrets.CAP_DEPLOYMENT_USER }}
92+
CAP_DEPLOYMENT_PASS: ${{ secrets.CAP_DEPLOYMENT_PASS }}
9093
run: |
94+
set +x
95+
echo "::add-mask::$CAP_DEPLOYMENT_USER"
96+
echo "::add-mask::$CAP_DEPLOYMENT_PASS"
9197
group_path="com/sap/cds/sdm"
9298
version="${{ steps.bump-version.outputs.updated_version || steps.read-revision.outputs.updated_version }}"
9399
echo "Checking metadata for $version"
94-
curl -u "${{ secrets.CAP_DEPLOYMENT_USER }}:${{ secrets.CAP_DEPLOYMENT_PASS }}" -f -I \
100+
curl -u "$CAP_DEPLOYMENT_USER:$CAP_DEPLOYMENT_PASS" -f -I \
95101
"$ARTIFACTORY_URL/$group_path/$version/maven-metadata.xml" || { echo "Metadata not found"; exit 1; }
96102
echo "Artifact metadata accessible for $version"
97103
- name: Summary

.github/workflows/main-build-and-deploy-oss.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
release:
99
types: [ "released" ]
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215

1316
update-version:
@@ -86,8 +89,10 @@ jobs:
8689

8790
deploy:
8891
name: Deploy to Maven Central
92+
environment: maven-central
8993
runs-on: ubuntu-latest
9094
needs: build
95+
timeout-minutes: 30
9196
steps:
9297
- name: Download artifact
9398
uses: actions/download-artifact@v7

.github/workflows/main-build-and-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
jobs:
1414

1515
update-version:
16+
environment: dev
1617
runs-on: ubuntu-latest
1718
#needs: blackduck
1819
steps:
@@ -36,6 +37,7 @@ jobs:
3637
retention-days: 1
3738

3839
build:
40+
environment: dev
3941
runs-on: ubuntu-latest
4042
needs: update-version
4143
steps:
@@ -60,6 +62,7 @@ jobs:
6062

6163
deploy:
6264
name: Deploy to Artifactory
65+
environment: dev
6366
runs-on: ubuntu-latest
6467
needs: build
6568
steps:

0 commit comments

Comments
 (0)