Skip to content

chore(deps): update dependency @biomejs/biome to v1.9.4 #70

chore(deps): update dependency @biomejs/biome to v1.9.4

chore(deps): update dependency @biomejs/biome to v1.9.4 #70

Workflow file for this run

name: web-analysis
run-name: ${{ (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.nightly_manual_trigger == 'true')) && format('web-analysis nightly {0}', github.ref_name) || '' }}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
inputs:
nightly_manual_trigger:
description: 'Set to true for nightly run'
required: true
default: false
type: boolean
schedule:
- cron: "0 3 * * 1-5"
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- "centreon/**"
- "!centreon/cypress/**"
- "!centreon/features/**"
- "!centreon/lighthouse/**"
- "!centreon/tests/**"
- "!centreon/.veracode-exclusions"
- "!centreon/veracode.json"
- "!centreon/packages/**"
push:
branches:
- develop
- dev-[2-9][0-9].[0-9][0-9].x
- master
- "[2-9][0-9].[0-9][0-9].x"
paths:
- "centreon/**"
jobs:
dispatch-to-maintained-branches:
if: |
github.run_attempt == 1 &&
github.event_name == 'schedule' &&
github.ref_name == 'develop'
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- run: |
NIGHTLY_TARGETS=("dev-23.04.x" "dev-23.10.x" "dev-24.04.x" "dev-24.10.x")
for target in "${NIGHTLY_TARGETS[@]}"; do
echo "[INFO] - Dispatching nightly run to $target branch."
gh workflow run web-analysis.yml -r "$target" -f nightly_manual_trigger=true
done
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
get-environment:
uses: ./.github/workflows/get-environment.yml
with:
version_file: centreon/www/install/insertBaseConf.sql
checkmarx-analysis:
needs: [get-environment]
if: github.event.pull_request.draft != 'true'
uses: ./.github/workflows/checkmarx-analysis.yml
with:
module_directory: "centreon"
module_name: "centreon-web"
major_version: ${{ needs.get-environment.outputs.major_version }}
minor_version: ${{ needs.get-environment.outputs.minor_version }}
stability: ${{ needs.get-environment.outputs.stability }}
secrets:
base_uri: ${{ secrets.AST_RND_SCANS_BASE_URI }}
cx_tenant: ${{ secrets.AST_RND_SCANS_TENANT }}
cx_client_id: ${{ secrets.AST_RND_SCANS_CLIENT_ID }}
cx_client_secret: ${{ secrets.AST_RND_SCANS_CLIENT_SECRET }}
jira_base_url: ${{ secrets.JIRA_BASE_URL }}
jira_user_email: ${{ secrets.XRAY_JIRA_USER_EMAIL }}
jira_api_token: ${{ secrets.XRAY_JIRA_TOKEN }}