diff --git a/.github/workflows/check-status.yml b/.github/workflows/check-status.yml index 0e9b9db95..0abbbe5fd 100644 --- a/.github/workflows/check-status.yml +++ b/.github/workflows/check-status.yml @@ -104,7 +104,7 @@ jobs: get-environment: if: | - contains(fromJSON('["pull_request", "pull_request_target"]') , github.event_name) && + contains(fromJSON('["pull_request"]') , github.event_name) && (startsWith(github.base_ref, 'release-') || startsWith(github.base_ref, 'hotfix-')) uses: ./.github/workflows/get-environment.yml @@ -112,7 +112,7 @@ jobs: needs: [get-environment, check-status] runs-on: ubuntu-24.04 if: | - contains(fromJSON('["pull_request", "pull_request_target"]') , github.event_name) && + contains(fromJSON('["pull_request"]') , github.event_name) && needs.get-environment.outputs.target_stability == 'testing' && ! contains(needs.get-environment.outputs.labels, 'skip-cherry-pick') diff --git a/.github/workflows/get-environment.yml b/.github/workflows/get-environment.yml index b4aeea727..7a58ee638 100644 --- a/.github/workflows/get-environment.yml +++ b/.github/workflows/get-environment.yml @@ -52,7 +52,7 @@ jobs: let hasSkipLabel = false; let labels = []; - if (${{ contains(fromJSON('["pull_request", "pull_request_target"]') , github.event_name) }} === true) { + if (${{ contains(fromJSON('["pull_request"]') , github.event_name) }} === true) { try { const fetchedLabels = await github.rest.issues.listLabelsOnIssue({ owner: context.repo.owner, diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index e3a83894d..294b4314c 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -15,7 +15,7 @@ jobs: - uses: gitleaks/gitleaks-action@83373cf2f8c4db6e24b41c1a9b086bb9619e9cd3 # v2.3.7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} + GITLEAKS_LICENSE: "Centreon" GITLEAKS_ENABLE_COMMENTS: false GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false GITLEAKS_ENABLE_SUMMARY: false diff --git a/.github/workflows/set-pull-request-external-label.yml b/.github/workflows/set-pull-request-external-label.yml index bedeb755b..904711950 100644 --- a/.github/workflows/set-pull-request-external-label.yml +++ b/.github/workflows/set-pull-request-external-label.yml @@ -5,7 +5,7 @@ concurrency: cancel-in-progress: true on: - pull_request_target: + pull_request: jobs: set-pull-request-external-label: diff --git a/.github/workflows/set-pull-request-skip-label.yml b/.github/workflows/set-pull-request-skip-label.yml index ffab0b955..6bf5ec1a3 100644 --- a/.github/workflows/set-pull-request-skip-label.yml +++ b/.github/workflows/set-pull-request-skip-label.yml @@ -5,7 +5,7 @@ on: jobs: set-pull-request-skip-label: - if: ${{ success() && contains(fromJSON('["pull_request", "pull_request_target"]') , github.event_name) }} + if: ${{ success() && contains(fromJSON('["pull_request"]') , github.event_name) }} runs-on: ubuntu-24.04 steps: