Skip to content

Move leading app to SDM plugin & workflow files update to read these apps from SDM plugin#504

Merged
vibhutikumar07 merged 9 commits into
developfrom
repoHardening
Jun 5, 2026
Merged

Move leading app to SDM plugin & workflow files update to read these apps from SDM plugin#504
vibhutikumar07 merged 9 commits into
developfrom
repoHardening

Conversation

@yashmeet29

@yashmeet29 yashmeet29 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

Below are the changes being done as part of this PR:

  • move all the leading applications to SDM plugin.
  • Update the workflows to work with above change

Changes Made to GitHub Actions Workflows (19 files)

  1. Environment Protection (environment: dev)
    Added environment: dev to every job across all workflows so secrets are served from a protected environment instead of repo-level, adding an extra access-control layer. Fork PRs will not receive secrets.

  2. Secrets moved from inline to env: blocks
    Replaced all ${{ secrets.X }} references inside shell commands with env: blocks. Values are now injected as environment variables instead of being baked into the process argument string (which is visible in process listings and audit logs).

  3. cf login banner suppressed (> /dev/null)
    Appended > /dev/null to all cf login commands to suppress this banner. stderr is unaffected so login failures still surface as errors.

  4. set +x as first line of every sensitive step
    Ensures bash debug-trace mode is disabled before any secret variable is assigned, preventing values from being printed if debug mode is ever enabled.

  5. ::add-mask:: for all secret-holding variables
    Registered every secret-holding shell variable (CF credentials, XSUAA clientSecret/clientID fetched at runtime, test usernames/passwords) with GitHub's log scrubber. This ensures any accidental echo or error trace is redacted as *** in logs. Masks are placed as the very first lines of each run block — before any command that could reference those values.

Type of change

  • Repo Hardening

Checklist before requesting a review

  • I follow Java Development Guidelines for SAP
  • I have tested the functionality on my cloud environment.
  • I have provided sufficient automated/ unit tests for the code.
  • I have increased or maintained the test coverage.
  • I have ran integration tests on my cloud environment.
  • I have validated blackduck portal for any vulnerability after my commit.

Upload Screenshots/lists of the scenarios tested

  • I have Uploaded Screenshots or added lists of the scenarios tested in description

Multitenant Integration Test: https://github.com/cap-java/sdm/actions/runs/26954696460

Single tenant Integration test: https://github.com/cap-java/sdm/actions/runs/26950541261

yashmeet29 and others added 2 commits June 4, 2026 19:46
* Harden GitHub Actions workflows — environment, secret masking & log protection

Security changes applied to all 19 workflow files:

1. environment: dev — All jobs now pull secrets from the protected "dev"
   environment instead of repo-level secrets, adding an extra access
   control layer. Jobs with existing environment (maven-central) are
   kept as-is.

2. Secrets moved from inline ${{ secrets.X }} to env: blocks — Prevents
   secret values from appearing in the process argument list (visible via
   ps/audit logs). Shell commands now reference $ENV_VAR instead.

3. set +x in every sensitive step — Disables bash debug-trace mode before
   any secret variable is assigned, preventing accidental log exposure if
   debug mode is ever enabled upstream.

4. ::add-mask:: for all runtime-fetched and copied secret variables —
   Registers CF credentials, clientSecret/clientID (fetched from XSUAA
   at runtime), usernames and passwords with GitHub's log scrubber so
   any accidental echo or error trace is redacted as *** in logs.

* Update pom.xml

* remove .gitignore from leading apps and add mta.yaml back (#505)

Co-authored-by: Yashmeet . <yashmeet@sap.com>

* Update multiTenancyDeployLocal.yml

* Update pom.xml

* modified workflow

* Added retry logic

* Added Retry logic

* modified workflow

* updated sdm version

* Updated sdm version in pom

---------

Co-authored-by: Yashmeet . <yashmeet@sap.com>
@vibhutikumar07 vibhutikumar07 reopened this Jun 5, 2026
@vibhutikumar07 vibhutikumar07 reopened this Jun 5, 2026

@vibhutikumar07 vibhutikumar07 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vibhutikumar07 vibhutikumar07 merged commit 2a4fb29 into develop Jun 5, 2026
8 checks passed
@vibhutikumar07 vibhutikumar07 deleted the repoHardening branch June 5, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants