Skip to content

Commit 1321fd0

Browse files
yenienserranoAlexRuiz7asteriscosTosttiDesvelao
committed
Migrate main to 3.0.0.0 (#268)
* Compatibility with opensearch 2.19.0 (#191) (#205) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump version 4.10.0 revision 00 (#53) * Merge 4.9.1 into 4.10.0 (#102) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * chore(bump): 4.10.0 rev01 (#103) * chore(bump): 4.10.1 rev 00 (#105) * Bump 4.10.2 00 (#109) * Merge 4.10.0 into 4.10.1 (#143) (#144) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * fix: conflict * fix: typo --------- * Bump version to 4.10.3 revision 00 (#149) * Support Wazuh 4.12.0 rev 00 (#159) * Bump version 4.12.0 * Bump version 4.12.0 * Merge 4.11.0 into 4.12.0 (#177) * Merge 4.10.0 into 4.10.1 (#143) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * fix: conflict * fix: typo --------- * Bump version 4.11.0 (#158) * Bump revision to 4.11.0-01 (#174) * Merge 4.10.2 into 4.11.0 (#176) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * Bump revision to 07 (#147) * Bump version 4.10.1 (#157) * chore(bump): 4.10.1 rev 01 (#165) * Bump version to 4.10.2-00 (#169) * Replace the SAML default embedded route redirects with a new default route redirect. (#171) * Saml url default path changes to wz-home * Added pretier * Resolve test * Repair tests --------- --------- * Change the version of cypress to opensearch dashboard version * Fix saml_aut_test.spec.js * Update dev-environment.yml * Update manual-build.yml * Add VERSION.json (#192) --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> * Bump version 4.13.0 (#213) * Merge 4.11.2 into 4.12.0 (#224) (#225) * chore(bump): 4.11.1 rev 01 (#203) * Bump revision to 02 (#209) * Bump version 4.11.2 (#217) * Bump version 4.11.2 * Bump version 4.11.2 * chore(bump): 4.11.2 rev 01 (#219) * chore(bump): 4.11.2 rev 02 (#221) --------- Co-authored-by: Antonio <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> * Repository bumper script development (#234) * add gitignore entry for repository bumper logs Prevents repository bumper log files from being tracked by Git. Improves repository cleanliness and avoids unnecessary clutter. * add repository version bumper script Introduces a shell script to automate version and stage updates across the repository. Includes argument parsing, input validation, version comparison, and file updates for consistent version management. * update manual build workflow version reference Adds a function to update the default version in the manual build workflow file. Logs changes and handles cases where the workflow file is missing. Enhances version consistency across repository workflows. * add stage extraction from VERSION.json Enhances pre-update checks by extracting the 'stage' field from VERSION.json using sed. Validates the extracted value and handles errors, ensuring robustness against missing or null fields. * improve version file update logic Adds conditional checks to update version and stage fields only if changes are detected. Prevents unnecessary modifications and improves logging clarity. * extract revision from package.json in repository bumper Adds logic to retrieve the current revision from package.json using sed. Logs errors if the revision is missing, null, or improperly formatted, and terminates the script to ensure data integrity. * improve version and revision update logic in package.json Adds conditional checks to update version and revision only when changes are needed. Introduces a flag to track modifications and logs success messages only when updates occur. Enhances code reliability and reduces redundant operations. * add conditional check when updating default reference Prevents redundant updates by adding a check to ensure the current version differs from the target version before making changes. Improves script reliability and avoids unnecessary operations. * add README for versioning tools Introduces a README file documenting the usage, functionality, and affected files of the `repository_bumper.sh` script. Provides examples, parameter details, and notes for users. Enhances clarity and usability of versioning tools. * Bump version to 5.0.0 (#252) * Bump version to 5.0.0 * Fix repository_bumper.sh * Optimizes CI workflows to run only on ready PRs Removes push triggers and adds draft PR filtering to prevent unnecessary CI runs. Changes workflow triggers from push/pull_request to only pull_request with specific types (opened, synchronize, reopened, ready_for_review) and adds conditional checks to skip execution when PRs are in draft state. Reduces CI resource usage and improves development workflow efficiency by avoiding test runs on incomplete work. * Add force: true --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]>
1 parent 6be08fa commit 1321fd0

38 files changed

+936
-144
lines changed

.github/actions/run-cypress-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747

4848
# OSD bootstrap
4949
- name: Run Dashboard with Security Dashboards Plugin
50-
uses: derek-ho/setup-opensearch-dashboards@v1
50+
uses: derek-ho/setup-opensearch-dashboards@v3
5151
with:
5252
plugin_name: security-dashboards-plugin
5353
opensearch_dashboards_yml: ${{ inputs.dashboards_config_file }}
@@ -100,7 +100,7 @@ runs:
100100
shell: bash
101101

102102
- name: Run Cypress Tests with retry
103-
uses: Wandalen/wretry.action@v3.3.0
103+
uses: Wandalen/wretry.action@v3
104104
with:
105105
attempt_limit: 5
106106
attempt_delay: 2000

.github/workflows/auto-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ jobs:
1414
steps:
1515
- name: GitHub App token
1616
id: github_app_token
17-
uses: tibdex/github-app-token@v1.5.0
17+
uses: tibdex/github-app-token@v2.1.0
1818
with:
1919
app_id: ${{ secrets.APP_ID }}
2020
private_key: ${{ secrets.APP_PRIVATE_KEY }}
21-
installation_id: 22958780
21+
# https://github.com/tibdex/github-app-token/releases/tag/v2.0.0
22+
# https://github.com/tibdex/github-app-token/compare/v1.5.0...v2.1.0#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R11-R30
23+
installation_retrieval_mode: id
24+
installation_retrieval_payload: 22958780
2225
- name: Get tag
2326
id: tag
2427
uses: dawidd6/action-get-tag@v1
25-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2629
- uses: ncipollo/release-action@v1
2730
with:
2831
github_token: ${{ steps.github_app_token.outputs.token }}

.github/workflows/backport.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
with:
2121
app_id: ${{ secrets.APP_ID }}
2222
private_key: ${{ secrets.APP_PRIVATE_KEY }}
23-
installation_id: 22958780
23+
# https://github.com/tibdex/github-app-token/releases/tag/v2.0.0
24+
# https://github.com/tibdex/github-app-token/compare/v1.5.0...v2.1.0#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R11-R30
25+
installation_retrieval_mode: id
26+
installation_retrieval_payload: 22958780
2427

2528
- name: Backport
2629
uses: VachaShah/[email protected]

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This workflow builds a production-ready package when a tag is created.
2+
#
3+
# This workflow is based on the `dev-environment` workflow.
4+
5+
name: Build
6+
7+
on:
8+
push:
9+
tags:
10+
- 'v*'
11+
jobs:
12+
build:
13+
name: Build app package (auto)
14+
uses: ./.github/workflows/dev-environment.yml
15+
with:
16+
reference: ${{ github.ref_name }}
17+
command: 'yarn build'
18+
artifact_name: 'wazuh-security-dashboards-plugin-${{ github.ref_name }}'
19+
artifact_path: './wazuh-security-plugin/build'

.github/workflows/codeql.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main", "[0-9].[0-9]", "[0-9].x" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "main" ]
20+
schedule:
21+
- cron: '00 8 * * 5'
22+
workflow_dispatch:
23+
24+
jobs:
25+
analyze:
26+
name: Analyze
27+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
28+
permissions:
29+
actions: read
30+
contents: read
31+
security-events: write
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
language: [ 'javascript' ]
37+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
38+
# Use only 'java' to analyze code written in Java, Kotlin or both
39+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
40+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41+
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@v2
49+
with:
50+
languages: ${{ matrix.language }}
51+
# If you wish to specify custom queries, you can do so here or in a config file.
52+
# By default, queries listed here will override any specified in a config file.
53+
# Prefix the list here with "+" to use these queries and those in the config file.
54+
55+
# For more 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
56+
# queries: security-extended,security-and-quality
57+
58+
59+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
60+
# If this step fails, then you should remove it and run the build manually (see below)
61+
- name: Autobuild
62+
uses: github/codeql-action/autobuild@v2
63+
64+
# ℹ️ Command-line programs to run using the OS shell.
65+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
66+
67+
# If the Autobuild fails above, remove it and uncomment the following three lines.
68+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
69+
70+
# - run: |
71+
# echo "Run, Build Application using script"
72+
# ./location_of_script_within_repo/buildscript.sh
73+
74+
- name: Perform CodeQL Analysis
75+
uses: github/codeql-action/analyze@v2
76+
with:
77+
category: "/language:${{matrix.language}}"

.github/workflows/cypress-test-multiauth-e2e.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Snapshot based E2E SAML multi-auth tests workflow
22

3-
on: [ push, pull_request ]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
env:
68
CI: 1
@@ -18,10 +20,11 @@ jobs:
1820
os: [ ubuntu-latest ]
1921
basePath: [ "", "/osd" ]
2022
runs-on: ${{ matrix.os }}
23+
if: github.event.pull_request.draft == false
2124

2225
steps:
2326
- name: Checkout Branch
24-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2528

2629
- name: Set env
2730
run: |
@@ -30,7 +33,7 @@ jobs:
3033
echo "OPENSEARCH_VERSION=$opensearch_version" >> $GITHUB_ENV
3134
echo "PLUGIN_VERSION=$plugin_version" >> $GITHUB_ENV
3235
shell: bash
33-
36+
3437
# Add SAML Configuration
3538
- name: Injecting SAML Configuration for Linux
3639
if: ${{ runner.os == 'Linux'}}

.github/workflows/cypress-test-multidatasources-disabled-e2e.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: E2E multi datasources disabled workflow
22

3-
on: [ push, pull_request ]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
env:
68
CI: 1
79
# avoid warnings like "tput: No value for $TERM and no -T specified"
810
TERM: xterm
911
PLUGIN_NAME: opensearch-security
1012
OPENSEARCH_INITIAL_ADMIN_PASSWORD: myStrongPassword123!
11-
13+
1214
jobs:
1315
tests:
1416
name: Run Cypress multidatasources tests
@@ -17,10 +19,11 @@ jobs:
1719
matrix:
1820
os: [ ubuntu-latest ]
1921
runs-on: ${{ matrix.os }}
22+
if: github.event.pull_request.draft == false
2023

2124
steps:
2225
- name: Checkout Branch
23-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2427

2528
- name: Set env
2629
run: |

.github/workflows/cypress-test-multidatasources-enabled-e2e.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
name: E2E multi datasources enabled workflow
22

3-
on: [ push, pull_request ]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
env:
68
CI: 1
79
# avoid warnings like "tput: No value for $TERM and no -T specified"
810
TERM: xterm
911
PLUGIN_NAME: opensearch-security
1012
OPENSEARCH_INITIAL_ADMIN_PASSWORD: myStrongPassword123!
11-
13+
1214
jobs:
1315
tests:
1416
name: Run Cypress multidatasources tests
@@ -17,10 +19,11 @@ jobs:
1719
matrix:
1820
os: [ ubuntu-latest ]
1921
runs-on: ${{ matrix.os }}
22+
if: github.event.pull_request.draft == false
2023

2124
steps:
2225
- name: Checkout Branch
23-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2427

2528
- name: Set env
2629
run: |
@@ -64,7 +67,7 @@ jobs:
6467
plugin-name: ${{ env.PLUGIN_NAME }}
6568
plugin-version: ${{ env.PLUGIN_VERSION }}
6669
download-location: ${{env.PLUGIN_NAME}}
67-
70+
6871
- name: Run Opensearch with A Single Plugin
6972
uses: derek-ho/start-opensearch@v6
7073
with:

.github/workflows/cypress-test-oidc-e2e.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Snapshot based E2E OIDC tests workflow
22

3-
on: [ push, pull_request ]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
env:
68
KEYCLOAK_VERSION: '21.0.1'
@@ -12,7 +14,7 @@ env:
1214
# This is the SHA256 checksum of the known good kc.sh script for Keycloak version 21.0.1.
1315
KNOWN_CHECKSUM_OF_KEYCLOAK_SCRIPT: 'f825ea1a9ffa5ad91673737c06857ababbb69b6b8f09e0c637b4c998517f9608'
1416
OPENSEARCH_INITIAL_ADMIN_PASSWORD: myStrongPassword123!
15-
17+
1618
jobs:
1719
tests:
1820
name: Run Cypress E2E OIDC tests
@@ -22,10 +24,11 @@ jobs:
2224
os: [ ubuntu-latest ]
2325
basePath: [ "", "/osd" ]
2426
runs-on: ${{ matrix.os }}
27+
if: github.event.pull_request.draft == false
2528

2629
steps:
2730
- name: Checkout Branch
28-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
2932

3033
- name: Set env
3134
run: |
@@ -48,7 +51,7 @@ jobs:
4851
DOWNLOADED_CHECKSUM=$(sha256sum kc.sh | awk '{print $1}')
4952
echo "Downloaded kc.sh checksum: $DOWNLOADED_CHECKSUM"
5053
echo "Known good kc.sh checksum: ${{ env.KNOWN_CHECKSUM_OF_KEYCLOAK_SCRIPT }}"
51-
KNOWN_GOOD_CHECKSUM="${{ env.KNOWN_CHECKSUM_OF_KEYCLOAK_SCRIPT }}"
54+
KNOWN_GOOD_CHECKSUM="${{ env.KNOWN_CHECKSUM_OF_KEYCLOAK_SCRIPT }}"
5255
if [ "$DOWNLOADED_CHECKSUM" != "$KNOWN_GOOD_CHECKSUM" ]; then
5356
echo "Checksum mismatch. The kc.sh script does not match the known good version. Please check https://github.com/keycloak/keycloak and verify the updates."
5457
exit 1
@@ -78,7 +81,7 @@ jobs:
7881
echo "The client secret is: $CLIENT_SECRET"
7982
echo "Creating client mapper"
8083
./kcadm.sh create clients/$CID/protocol-mappers/models -r master -s 'config."id.token.claim"=true' -s 'config."multivalued"=true' -s 'config."claim.name"="roles"' -s 'config."userinfo.token.claim"=true' -s 'config."access.token.claim"=true' -s 'name=rolemapper' -s 'protocolMapper=oidc-usermodel-realm-role-mapper' -s "protocol=openid-connect"
81-
84+
8285
# Add OpenID Configuration
8386
- name: Creating OpenID Configuration for Linux
8487
if: ${{ runner.os == 'Linux'}}

.github/workflows/cypress-test-saml-e2e.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Snapshot based E2E SAML tests workflow
22

3-
on: [ push, pull_request ]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
46

57
env:
68
CI: 1
@@ -18,10 +20,11 @@ jobs:
1820
os: [ ubuntu-latest ]
1921
basePath: [ "", "/osd" ]
2022
runs-on: ${{ matrix.os }}
23+
if: github.event.pull_request.draft == false
2124

2225
steps:
2326
- name: Checkout Branch
24-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2528

2629
- name: Set env
2730
run: |
@@ -30,7 +33,7 @@ jobs:
3033
echo "OPENSEARCH_VERSION=$opensearch_version" >> $GITHUB_ENV
3134
echo "PLUGIN_VERSION=$plugin_version" >> $GITHUB_ENV
3235
shell: bash
33-
36+
3437
# Add SAML Configuration
3538
- name: Create SAML Configuration for Linux
3639
if: ${{ runner.os == 'Linux'}}

0 commit comments

Comments
 (0)