Skip to content

Commit ddcb43f

Browse files
authored
Release 20250901 (#5763)
2 parents cd9eba2 + c605eb4 commit ddcb43f

File tree

9 files changed

+37
-123
lines changed

9 files changed

+37
-123
lines changed

.githooks/pre-commit

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env sh
2+
set -eu
3+
4+
# ensure gitleaks is available
5+
if ! command -v gitleaks >/dev/null 2>&1; then
6+
echo "Error: gitleaks is not installed or not in PATH." >&2
7+
echo "Install: https://github.com/gitleaks/gitleaks#install" >&2
8+
exit 1
9+
fi
10+
11+
# scan for secrets before commit
12+
gitleaks detect --no-git --verbose

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ selinux/** @centreon/owners-pipelines
2424

2525
.gitleaks.toml @centreon/owners-security
2626
.gitleaksignore @centreon/owners-security
27-
**/checkmarx-analysis.yml @centreon/owners-security
27+
**/security-checks.yml @centreon/owners-security

.github/workflows/actionlint.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ jobs:
1919
runs-on: ubuntu-24.04
2020
steps:
2121
- name: Checkout sources
22-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323

2424
- name: Download actionlint
2525
id: get_actionlint
26-
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
26+
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.7.7/scripts/download-actionlint.bash)
2727
shell: bash
2828

2929
- name: Check workflow files
3030
run: |
3131
${{ steps.get_actionlint.outputs.executable }} \
32-
-ignore 'label "centreon-common" is unknown' \
33-
-ignore 'label "centreon-collect-arm64" is unknown' \
32+
-ignore 'label "centreon-(common|collect-arm64)" is unknown' \
33+
-ignore 'label "ubuntu-(24.04|24.04-arm)" is unknown' \
3434
-ignore '"github.head_ref" is potentially untrusted' \
3535
-shellcheck= \
3636
-pyflakes= \
@@ -39,12 +39,15 @@ jobs:
3939

4040
- name: Ensure SHA pinned actions
4141
uses: centreon/github-actions-ensure-sha-pinned-actions@47d553c67ceb08ad660deaeb3b994e47a3dd8fc3 # v3.0.23.3
42+
with:
43+
allowlist: |
44+
centreon/security-tools
4245
4346
yaml-lint:
4447
runs-on: ubuntu-24.04
4548
steps:
4649
- name: Checkout sources
47-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
50+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4851

4952
- name: Install Yaml
5053
run: |

.github/workflows/checkmarx-analysis.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/gitleaks.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/perl-cpan-libraries.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
- spec_file: ""
101101
- no-auto-depends: "false"
102102
- preinstall_cpanlibs: ""
103-
- revision: "1"
103+
- revision: "2"
104104
- distrib: el8
105105
package_extension: rpm
106106
image: packaging-plugins-alma8
@@ -112,7 +112,7 @@ jobs:
112112
- name: "Crypt::Argon2"
113113
preinstall_cpanlibs: "Dist::Build"
114114
rpm_provides: "perl-Crypt-Argon2-debuginfo perl(Crypt::Argon2)"
115-
revision: "2"
115+
revision: "3"
116116
- name: "DateTime::Format::Duration::ISO8601"
117117
rpm_provides: "perl(DateTime-Format-Duration-ISO8601)"
118118
- name: "Device::Modbus::RTU::Client"
@@ -128,15 +128,15 @@ jobs:
128128
- name: "Libssh::Session"
129129
rpm_dependencies: "libssh"
130130
rpm_provides: "perl-Libssh-Session-debuginfo perl(Libssh::Session) perl(Libssh::Sftp)"
131-
revision: "2"
131+
revision: "3"
132132
- name: "Mojo::IOLoop::Signal"
133133
rpm_dependencies: "perl-Mojolicious"
134134
rpm_provides: "perl(Mojo::IOLoop::Signal)"
135135
no-auto-depends: "true"
136136
- name: "Net::Curl"
137137
rpm_dependencies: "libcurl"
138138
rpm_provides: "perl-Net-Curl-debuginfo perl(Net::Curl) perl(Net::Curl::Compat) perl(Net::Curl::Easy) perl(Net::Curl::Form) perl(Net::Curl::Multi) perl(Net::Curl::Share)"
139-
revision: "2"
139+
revision: "3"
140140
- name: "Net::DHCP"
141141
rpm_provides: "perl(Net::DHCP::Constants) perl(Net::DHCP::Packet)"
142142
- name: "Net::SMTPS"
@@ -240,7 +240,7 @@ jobs:
240240
241241
temp_file=$(mktemp)
242242
echo "default.local" | tee /etc/mailname
243-
created_package=$(fpm -s cpan -t ${{ matrix.package_extension }} --rpm-dist ${{ matrix.distrib }} --verbose --cpan-verbose --no-cpan-test$PACKAGE_DEPENDENCIES$PACKAGE_PROVIDES$PACKAGE_VERSION --iteration ${{ matrix.revision }} ${{ matrix.name }} | tee "$temp_file" | grep "Created package" | grep -oP '(?<=:path=>").*?(?=")')
243+
created_package=$(fpm -s cpan -t ${{ matrix.package_extension }} --rpm-dist ${{ matrix.distrib }} --rpm-digest sha256 --verbose --cpan-verbose --no-cpan-test$PACKAGE_DEPENDENCIES$PACKAGE_PROVIDES$PACKAGE_VERSION --iteration ${{ matrix.revision }} ${{ matrix.name }} | tee "$temp_file" | grep "Created package" | grep -oP '(?<=:path=>").*?(?=")')
244244
# Check package name
245245
if [ -z "$created_package" ]; then
246246
echo "Error: fpm command failed"
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: plugins-analysis
1+
name: security-checks
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
55
cancel-in-progress: true
66

77
on:
8-
workflow_dispatch:
9-
schedule:
10-
- cron: '30 0 * * 1-5'
118
pull_request:
129
branches:
1310
- develop
@@ -16,26 +13,22 @@ on:
1613
branches:
1714
- develop
1815
- master
16+
workflow_dispatch:
17+
schedule:
18+
- cron: 0 1 * * 1-5
1919

2020
jobs:
21-
get-environment:
22-
uses: ./.github/workflows/get-environment.yml
21+
secrets_scan:
22+
uses: centreon/security-tools/.github/workflows/gitleaks-analysis.yml@main
2323

24-
checkmarx-analysis:
25-
needs: [get-environment]
26-
if: |
27-
needs.get-environment.outputs.skip_workflow == 'false' &&
28-
github.event.pull_request.draft != 'true'
29-
uses: ./.github/workflows/checkmarx-analysis.yml
24+
code_scan:
25+
uses: centreon/security-tools/.github/workflows/checkmarx-analysis.yml@main
3026
with:
27+
module_directory:
3128
module_name: centreon-plugins
29+
exclude_list:
3230
secrets:
3331
base_uri: ${{ secrets.AST_RND_SCANS_BASE_URI }}
3432
cx_tenant: ${{ secrets.AST_RND_SCANS_TENANT }}
3533
cx_client_id: ${{ secrets.AST_RND_SCANS_CLIENT_ID }}
3634
cx_client_secret: ${{ secrets.AST_RND_SCANS_CLIENT_SECRET }}
37-
38-
set-skip-label:
39-
needs: [get-environment, checkmarx-analysis]
40-
if: needs.get-environment.outputs.skip_workflow == 'false'
41-
uses: ./.github/workflows/set-pull-request-skip-label.yml

.gitleaksignore

Whitespace-only changes.

.version.plugins

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20250900
1+
20250901

0 commit comments

Comments
 (0)