Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5f5b00a
Fixes: mosip/k8s-infra#373 - Update Android build workflow with new i…
Mohanraj209 Aug 21, 2026
c8cf02a
Fixes: mosip/k8s-infra#373 - Enhance android-publish.yml with new inputs
Mohanraj209 Aug 21, 2026
8004c2d
Fixes: mosip/k8s-infra#373 - Fix formatting in android-build.yml
Mohanraj209 Aug 21, 2026
0ec90c5
Fixes: mosip/k8s-infra#373 - Uncomment conditional for Slack notifica…
Mohanraj209 Aug 21, 2026
cfde6e1
Fixes: mosip/k8s-infra#373 - Enhance browserstack-web.yml with AWS in…
Mohanraj209 Aug 21, 2026
9d83848
Fixes: mosip/k8s-infra#373 - Add optional DEPENDENCIES input to chart…
Mohanraj209 Aug 21, 2026
9e534b2
Fixes: mosip/k8s-infra#373 - Add permissions and update Slack notific…
Mohanraj209 Aug 21, 2026
b0cfbcd
Fixes: mosip/k8s-infra#373 - Upgrade CodeQL actions to version 2
Mohanraj209 Aug 21, 2026
023d3aa
Fixes: mosip/k8s-infra#373 - Disable Slack alerts in db-test workflow
Mohanraj209 Aug 21, 2026
a17f897
Fixes: mosip/k8s-infra#373 - Disable per-workflow Slack alerts
Mohanraj209 Aug 21, 2026
cc78429
Fixes: mosip/k8s-infra#373 - Disable Slack alerts in dev-pre-release-…
Mohanraj209 Aug 21, 2026
cba4ea2
Fixes: mosip/k8s-infra#373 - Refactor Docker build workflow and valid…
Mohanraj209 Aug 21, 2026
d93ec8f
Fixes: mosip/k8s-infra#373 - Add Go Build reusable workflow configura…
Mohanraj209 Aug 21, 2026
2347f80
Fixes: mosip/k8s-infra#373 - Add Gradle build workflow configuration
Mohanraj209 Aug 21, 2026
a4cf55d
Fixes: mosip/k8s-infra#373 - Update JDK setup and disable Slack notif…
Mohanraj209 Aug 21, 2026
a6d2746
Fixes: mosip/k8s-infra#373 - Update helm-release.yaml
Mohanraj209 Aug 21, 2026
3923910
Fixes: mosip/k8s-infra#373 - Refactor image transfer workflow with ne…
Mohanraj209 Aug 21, 2026
9b564e3
Fixes: mosip/k8s-infra#373 - Upgrade macOS version and configure Xcod…
Mohanraj209 Aug 21, 2026
05bf8ea
Fixes: mosip/k8s-infra#373 - Update iOS publish workflow with new inp…
Mohanraj209 Aug 21, 2026
97b5a40
Fixes: mosip/k8s-infra#373 - Enhance Maven build workflow with new in…
Mohanraj209 Aug 21, 2026
58a1876
Fixes: mosip/k8s-infra#373 - Enhance GitHub Actions for Maven publishing
Mohanraj209 Aug 21, 2026
dfb9251
Fixes: mosip/k8s-infra#373 - Add Maven build workflow for Android pro…
Mohanraj209 Aug 21, 2026
2017186
Fixes: mosip/k8s-infra#373 - Upgrade JDK from 11 to 21 in workflow
Mohanraj209 Aug 21, 2026
b6d615f
Fixes: mosip/k8s-infra#373 - Refactor Sonar analysis workflow for JDK 21
Mohanraj209 Aug 21, 2026
16c6076
Fixes: mosip/k8s-infra#373 - Disable Slack alerts during CI/CD transi…
Mohanraj209 Aug 21, 2026
b9db8b1
Fixes: mosip/k8s-infra#373 - Refactor npm-build.yml for input simplif…
Mohanraj209 Aug 21, 2026
286dea4
Fixes: mosip/k8s-infra#373 - Disable Slack alerts in npm publish work…
Mohanraj209 Aug 21, 2026
3df37e4
Fixes: mosip/k8s-infra#373 - Enhance npm-sonar-analysis workflow conf…
Mohanraj209 Aug 21, 2026
8cb0aa5
Fixes: mosip/k8s-infra#373 - Add post-release preparation workflow
Mohanraj209 Aug 21, 2026
c6c291f
Fixes: mosip/k8s-infra#373 - Enhance release workflow with new inputs…
Mohanraj209 Aug 21, 2026
7ae0a90
Fixes: mosip/k8s-infra#373 - Clean up swift-sonar-analysis.yml
Mohanraj209 Aug 21, 2026
efe3116
Fixes: mosip/k8s-infra#373 - Disable per-workflow Slack alerts
Mohanraj209 Aug 21, 2026
09dc979
Fixes: mosip/k8s-infra#373 - Add workflow to update Slack user map
Mohanraj209 Aug 21, 2026
fd04ce6
Fixes: mosip/k8s-infra#373 - Add workflow to verify Keycloak roles an…
Mohanraj209 Aug 21, 2026
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
93 changes: 74 additions & 19 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,42 @@
name: Android Build

env:
DUMMY_DEBUG_KEYSTORE_PASSWORD: 'password'

on:
workflow_call:
inputs:
NODE_VERSION:
default: "16.x"
type: string
DEBUG_KEYSTORE_ALIAS:
default: androiddebugkey
JAVA_VERSION:
description: "Java version for the build"
default: "17"
type: string
MIMOTO_HOST:
description: "Mimoto backend service URL"
default: "https://api.sandbox.mosip.net"
type: string
ESIGNET_HOST:
description: "Esignet backend service URL"
default: "https://api.sandbox.mosip.net"
type: string
KEYSTORE_ALIAS:
required: true
default: androidbuildkey
type: string
KEYSTORE_PASSWORD:
required: true
default: password
type: string
UPLOAD_TO_ACTIONS:
default: 'false'
required: true
type: string
APPLICATION_THEME:
description: "Application Theme"
default: 'orange'
type: string
ALLOW_ENV_EDIT:
description: "Edit ENV"
default: 'true'
type: string
SERVICE_LOCATION:
description: "Service Location"
Expand All @@ -27,14 +53,23 @@ on:
required: true
default: "scripts"
type: string
SCRIPT_NAME:
SCRIPT_NAME:
description: "Build script name"
required: true
default: "./android-build.sh"
type: string
secrets:
DEBUG_KEYSTORE_PASSWORD:
required: true
ANDROID_ARTIFACT_NAME:
description: "Android Artifact name"
default: "Android App"
type: string
ANDROID_ARTIFACT_PATH:
description: "Android Artifact path"
default: "android/app/build/outputs"
type: string
APPLICATION_TYPE:
description: "Apk type"
default: "release"
type: string

jobs:
build-android:
Expand All @@ -45,6 +80,12 @@ jobs:
with:
node-version: ${{ inputs.NODE_VERSION }}

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ inputs.JAVA_VERSION }}

- name: Cache npm dependencies
uses: actions/cache@v4
with:
Expand All @@ -62,28 +103,42 @@ jobs:
run: |
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV

- name: Generate keystore for build
- name: Generate Dummy keystore for build
run: |
keytool \
-genkey -v \
-storetype PKCS12 \
-keyalg RSA \
-keysize 2048 \
-validity 10000 \
-storepass $DEBUG_KEYSTORE_PASSWORD \
-keypass $DEBUG_KEYSTORE_PASSWORD \
-alias $DEBUG_KEYSTORE_ALIAS \
-keystore android/app/debug.keystore \
-storepass $KEYSTORE_PASSWORD \
-keypass $KEYSTORE_PASSWORD \
-alias $KEYSTORE_ALIAS \
-keystore android/app/${{ inputs.APPLICATION_TYPE }}.keystore \
-dname "CN=io.mosip.residentapp,OU=,O=,L=,S=,C=US"
env:
DEBUG_KEYSTORE_PASSWORD: ${{ secrets.DEBUG_KEYSTORE_PASSWORD || env.DUMMY_DEBUG_KEYSTORE_PASSWORD }}
DEBUG_KEYSTORE_ALIAS: ${{ inputs.DEBUG_KEYSTORE_ALIAS }}
KEYSTORE_PASSWORD: ${{ inputs.KEYSTORE_PASSWORD }}
KEYSTORE_ALIAS: ${{ inputs.KEYSTORE_ALIAS }}

- name: Create Build
run: |
cd ${{ inputs.SERVICE_LOCATION }}/${{ inputs.ANDROID_SERVICE_LOCATION }}
cd ${{ inputs.BUILD_SCRIPT_LOCATION }}
${{ inputs.SCRIPT_NAME }}
${{ inputs.SCRIPT_NAME }} "${{ inputs.APPLICATION_TYPE }}"
env:
DEBUG_KEYSTORE_ALIAS: ${{ inputs.DEBUG_KEYSTORE_ALIAS }}
DEBUG_KEYSTORE_PASSWORD: ${{ secrets.DEBUG_KEYSTORE_PASSWORD || env.DUMMY_DEBUG_KEYSTORE_PASSWORD }}
MIMOTO_HOST: ${{ inputs.MIMOTO_HOST }}
ESIGNET_HOST: ${{ inputs.ESIGNET_HOST }}
APPLICATION_THEME: ${{ inputs.APPLICATION_THEME }}
RELEASE_KEYSTORE_ALIAS: ${{ inputs.KEYSTORE_ALIAS }}
DEBUG_KEYSTORE_ALIAS: ${{ inputs.KEYSTORE_ALIAS }}
RELEASE_KEYSTORE_PASSWORD: ${{ inputs.KEYSTORE_PASSWORD }}
DEBUG_KEYSTORE_PASSWORD: ${{ inputs.KEYSTORE_PASSWORD }}
CREDENTIAL_REGISTRY_EDIT: ${{ inputs.ALLOW_ENV_EDIT }}

- name: Upload Artifact to Actions
if: ${{ inputs.UPLOAD_TO_ACTIONS == 'true'}}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.ANDROID_ARTIFACT_NAME }}
path: ${{ inputs.ANDROID_ARTIFACT_PATH }}
retention-days: 10
23 changes: 23 additions & 0 deletions .github/workflows/android-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
NODE_VERSION:
default: "16.x"
type: string
JAVA_VERSION:
description: "Java version for the build"
default: "11"
type: string
RELEASE_KEYSTORE_ALIAS:
default: androidreleasekey
type: string
Expand All @@ -36,6 +40,10 @@ on:
description: "Edit ENV"
required: true
type: string
LIVENESS_DETECTION:
description: "Detect Liveness"
required: true
type: string
ANDROID_ARTIFACT_NAME:
description: "Android Artifact name"
required: true
Expand Down Expand Up @@ -80,6 +88,8 @@ on:
required: true
SLACK_WEBHOOK_URL:
required: true
GOOGLE_ANDROID_CLIENT_ID:
required: true

jobs:
deploy-android:
Expand All @@ -89,6 +99,12 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.NODE_VERSION }}

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ inputs.JAVA_VERSION }}

- name: Cache npm dependencies
uses: actions/cache@v4
Expand Down Expand Up @@ -142,9 +158,11 @@ jobs:
RELEASE_KEYSTORE_ALIAS: ${{ inputs.RELEASE_KEYSTORE_ALIAS }}
RELEASE_KEYSTORE_PASSWORD: "${{secrets.RELEASE_KEYSTORE_PASSWORD}}"
CREDENTIAL_REGISTRY_EDIT: ${{ inputs.ALLOW_ENV_EDIT }}
LIVENESS_DETECTION: ${{ inputs.LIVENESS_DETECTION }}
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
BUILD_DESCRIPTION: ${{ inputs.BUILD_DESCRIPTION }}
APP_FLAVOR: ${{ inputs.APP_FLAVOR }}
GOOGLE_ANDROID_CLIENT_ID: ${{secrets.GOOGLE_ANDROID_CLIENT_ID}}

- name: Create Beta build and upload to play console
if: ${{ inputs.RELEASE == 'beta' }}
Expand All @@ -159,9 +177,11 @@ jobs:
RELEASE_KEYSTORE_ALIAS: ${{ inputs.RELEASE_KEYSTORE_ALIAS }}
RELEASE_KEYSTORE_PASSWORD: "${{secrets.RELEASE_KEYSTORE_PASSWORD}}"
CREDENTIAL_REGISTRY_EDIT: ${{ inputs.ALLOW_ENV_EDIT }}
LIVENESS_DETECTION: ${{ inputs.LIVENESS_DETECTION }}
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}"
BUILD_DESCRIPTION: ${{ inputs.BUILD_DESCRIPTION }}
APP_FLAVOR: ${{ inputs.APP_FLAVOR }}
GOOGLE_ANDROID_CLIENT_ID: ${{secrets.GOOGLE_ANDROID_CLIENT_ID}}

- name: Create Build
run: |
Expand All @@ -175,6 +195,8 @@ jobs:
RELEASE_KEYSTORE_ALIAS: ${{ inputs.RELEASE_KEYSTORE_ALIAS }}
RELEASE_KEYSTORE_PASSWORD: "${{secrets.RELEASE_KEYSTORE_PASSWORD}}"
CREDENTIAL_REGISTRY_EDIT: ${{ inputs.ALLOW_ENV_EDIT }}
LIVENESS_DETECTION: ${{ inputs.LIVENESS_DETECTION }}
GOOGLE_ANDROID_CLIENT_ID: ${{secrets.GOOGLE_ANDROID_CLIENT_ID}}

- name: Upload Artifact to Actions
uses: actions/upload-artifact@v4
Expand All @@ -183,6 +205,7 @@ jobs:
path: ${{ inputs.ANDROID_ARTIFACT_PATH }}
retention-days: 10

# As part of a move to centralized CI/CD notifications, we're temporarily disabling per-workflow Slack alerts. This avoids duplicate/inconsistent messages while the new centralized routing is rolled out. Build and deployment behavior is unaffected — only notifications are changing.
# - uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/browserstack-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ on:
BROWSERSTACK_USERNAME:
required: true
BROWSERSTACK_ACCESS_KEY:
required: true
required: true
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
AWS_REGION:
required: true
S3_BUCKET:
required: true

jobs:
web-test:
Expand Down Expand Up @@ -44,3 +52,13 @@ jobs:
name: test-reports
path: ${{ inputs.SERVICE_LOCATION }}/${{ inputs.BUILD_ARTIFACT }}

- name: Upload to S3
if: success() || failure()
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
run: |
S3_OBJECT_KEY=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)
aws s3 cp ${{ inputs.SERVICE_LOCATION }}/${{ inputs.BUILD_ARTIFACT }} s3://$S3_BUCKET/$S3_OBJECT_KEY/ --recursive
5 changes: 5 additions & 0 deletions .github/workflows/chart-lint-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ on:
INCLUDE_ALL_CHARTS:
required: true
type: string
DEPENDENCIES:
required: false
type: string
secrets:
TOKEN:
required: true
Expand Down Expand Up @@ -92,6 +95,7 @@ jobs:
linting_lintconf_yaml_url: "${{ inputs.LINTING_LINTCONF_YAML_URL }}"
linting_chart_testing_config_yaml_url: "${{ inputs.LINTING_CHART_TESTING_CONFIG_YAML_URL }}"
linting_health_check_schema_yaml_url: "${{ inputs.LINTING_HEALTH_CHECK_SCHEMA_YAML_URL }}"
dependencies: "${{ inputs.DEPENDENCIES }}"


# Commented below tasks as it cannot test MOSIP helm/charts deployment due to dependencies issues
Expand All @@ -107,6 +111,7 @@ jobs:
# ct install --config=.github/chart-testing-config.yaml --charts=$chart --remote=target_repo --target-branch=$TARGET_BRANCH;
# done < ./list.txt

# As part of a move to centralized CI/CD notifications, we're temporarily disabling per-workflow Slack alerts. This avoids duplicate/inconsistent messages while the new centralized routing is rolled out. Build and deployment behavior is unaffected — only notifications are changing.
# - uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/clear-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
required: false
SLACK_WEBHOOK_URL:
required: false


permissions:
actions: write

jobs:
delete-artifacts:
runs-on: ubuntu-latest
Expand All @@ -15,10 +18,12 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 2days # Setting this to 0 will delete all artifacts

# As part of a move to centralized CI/CD notifications, we're temporarily disabling per-workflow Slack alerts. This avoids duplicate/inconsistent messages while the new centralized routing is rolled out. Build and deployment behavior is unaffected — only notifications are changing.
# - uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# fields: repo,message,author,commit,workflow,job # selectable (default: repo,message)
# env:
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_DEVOPS }} # required
# if: failure() # Pick up events even if the job fails or is canceled.
35 changes: 17 additions & 18 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
# supported CodeQL languages.
#
name: "CodeQL"

on:
workflow_call:

jobs:
analyze:
name: Analyze
Expand All @@ -20,38 +22,35 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
# Set up JDK 21
- name: Set up Java 21
uses: actions/setup-java@v3
with:
distribution: 'temurin' # Or any other JDK distribution like 'zulu', 'adopt'
java-version: '21'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# You can specify custom queries here, if needed.
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, you should remove it and run the build manually (see below).
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Run manual build commands if Autobuild fails.
# Uncomment the lines below and customize if Autobuild doesn't work for your project.
# - run: |
# ./your-build-command.sh
# Perform CodeQL Analysis.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -64,4 +63,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v2
1 change: 1 addition & 0 deletions .github/workflows/db-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
chmod +x deploy.sh
./deploy.sh deploy.properties

# As part of a move to centralized CI/CD notifications, we're temporarily disabling per-workflow Slack alerts. This avoids duplicate/inconsistent messages while the new centralized routing is rolled out. Build and deployment behavior is unaffected — only notifications are changing.
#- uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dev-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
done
done

# As part of a move to centralized CI/CD notifications, we're temporarily disabling per-workflow Slack alerts. This avoids duplicate/inconsistent messages while the new centralized routing is rolled out. Build and deployment behavior is unaffected — only notifications are changing.
# - uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
Expand Down
Loading