mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: plugins-analysis
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '30 0 * * 1-5'
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
- master
|
|
push:
|
|
branches:
|
|
- develop
|
|
- master
|
|
|
|
jobs:
|
|
get-environment:
|
|
uses: ./.github/workflows/get-environment.yml
|
|
|
|
checkmarx-analysis:
|
|
needs: [get-environment]
|
|
if: |
|
|
needs.get-environment.outputs.skip_workflow == 'false' &&
|
|
github.event.pull_request.draft != 'true'
|
|
uses: ./.github/workflows/checkmarx-analysis.yml
|
|
with:
|
|
module_name: centreon-plugins
|
|
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 }}
|
|
|
|
set-skip-label:
|
|
needs: [get-environment, checkmarx-analysis]
|
|
if: needs.get-environment.outputs.skip_workflow == 'false'
|
|
uses: ./.github/workflows/set-pull-request-skip-label.yml
|