diff options
author | Lorenz <12514511+RincewindsHat@users.noreply.github.com> | 2023-01-09 16:55:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 16:55:10 +0100 |
commit | e0ada6f11a82ed6119836482b84c8ba5df491d8f (patch) | |
tree | 6ddcd5f7850169d82d88dca56a2e5c0dbda08b4e /.github | |
parent | c389aa4f918aab5cf181aa2cb9dec68b3bf34d4f (diff) | |
parent | 0899e41f5075d661153eb2c77ace1734a8f66bfa (diff) | |
download | monitoring-plugins-e0ada6f.tar.gz |
Merge branch 'master' into rename_output_to_cmd_output
Diffstat (limited to '.github')
-rw-r--r-- | .github/dependabot.yml | 10 | ||||
-rwxr-xr-x | .github/prepare_debian.sh | 61 | ||||
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 4 | ||||
-rw-r--r-- | .github/workflows/test.yml | 4 |
4 files changed, 59 insertions, 20 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..282063c4 --- /dev/null +++ b/.github/dependabot.yml | |||
@@ -0,0 +1,10 @@ | |||
1 | version: 2 | ||
2 | updates: | ||
3 | - package-ecosystem: github-actions | ||
4 | directory: "/" | ||
5 | schedule: | ||
6 | interval: daily | ||
7 | time: "04:00" | ||
8 | pull-request-branch-name: | ||
9 | separator: "-" | ||
10 | open-pull-requests-limit: 10 | ||
diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index 4021c104..d8a76da6 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh | |||
@@ -11,21 +11,51 @@ if [ $(lsb_release -is) = "Debian" ]; then | |||
11 | apt-add-repository non-free | 11 | apt-add-repository non-free |
12 | apt-get update | 12 | apt-get update |
13 | fi | 13 | fi |
14 | apt-get -y install perl autotools-dev libdbi-dev libldap2-dev libpq-dev libradcli-dev libnet-snmp-perl procps | 14 | apt-get -y install perl \ |
15 | apt-get -y install libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd | 15 | autotools-dev \ |
16 | apt-get -y install fping snmp netcat-openbsd smbclient vsftpd apache2 ssl-cert postfix libhttp-daemon-ssl-perl | 16 | libdbi-dev \ |
17 | apt-get -y install libdbd-sybase-perl libnet-dns-perl | 17 | libldap2-dev \ |
18 | apt-get -y install slapd ldap-utils | 18 | libpq-dev \ |
19 | apt-get -y install gcc make autoconf automake gettext | 19 | libradcli-dev \ |
20 | apt-get -y install faketime | 20 | libnet-snmp-perl \ |
21 | apt-get -y install libmonitoring-plugin-perl | 21 | procps \ |
22 | apt-get -y install libcurl4-openssl-dev | 22 | libdbi0-dev \ |
23 | apt-get -y install liburiparser-dev | 23 | libdbd-sqlite3 \ |
24 | apt-get -y install squid | 24 | libssl-dev \ |
25 | apt-get -y install openssh-server | 25 | dnsutils \ |
26 | apt-get -y install mariadb-server mariadb-client libmariadb-dev | 26 | snmp-mibs-downloader \ |
27 | apt-get -y install cron iputils-ping | 27 | libsnmp-perl \ |
28 | apt-get -y install iproute2 | 28 | snmpd \ |
29 | fping \ | ||
30 | snmp \ | ||
31 | netcat-openbsd \ | ||
32 | smbclient \ | ||
33 | vsftpd \ | ||
34 | apache2 \ | ||
35 | ssl-cert \ | ||
36 | postfix \ | ||
37 | libhttp-daemon-ssl-perl \ | ||
38 | libdbd-sybase-perl \ | ||
39 | libnet-dns-perl \ | ||
40 | slapd \ | ||
41 | ldap-utils \ | ||
42 | gcc \ | ||
43 | make \ | ||
44 | autoconf \ | ||
45 | automake \ | ||
46 | gettext \ | ||
47 | faketime \ | ||
48 | libmonitoring-plugin-perl \ | ||
49 | libcurl4-openssl-dev \ | ||
50 | liburiparser-dev \ | ||
51 | squid \ | ||
52 | openssh-server \ | ||
53 | mariadb-server \ | ||
54 | mariadb-client \ | ||
55 | libmariadb-dev \ | ||
56 | cron \ | ||
57 | iputils-ping \ | ||
58 | iproute2 | ||
29 | 59 | ||
30 | # remove ipv6 interface from hosts | 60 | # remove ipv6 interface from hosts |
31 | if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then | 61 | if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then |
@@ -37,7 +67,6 @@ ip addr show | |||
37 | 67 | ||
38 | cat /etc/hosts | 68 | cat /etc/hosts |
39 | 69 | ||
40 | |||
41 | # apache | 70 | # apache |
42 | a2enmod ssl | 71 | a2enmod ssl |
43 | a2ensite default-ssl | 72 | a2ensite default-ssl |
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index afe6ab4f..ab8bfaae 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml | |||
@@ -39,11 +39,11 @@ jobs: | |||
39 | 39 | ||
40 | steps: | 40 | steps: |
41 | - name: Checkout repository | 41 | - name: Checkout repository |
42 | uses: actions/checkout@v2 | 42 | uses: actions/checkout@v3 |
43 | 43 | ||
44 | # Initializes the CodeQL tools for scanning. | 44 | # Initializes the CodeQL tools for scanning. |
45 | - name: Initialize CodeQL | 45 | - name: Initialize CodeQL |
46 | uses: github/codeql-action/init@v1 | 46 | uses: github/codeql-action/init@v2 |
47 | with: | 47 | with: |
48 | languages: ${{ matrix.language }} | 48 | languages: ${{ matrix.language }} |
49 | # If you wish to specify custom queries, you can do so here or in a config file. | 49 | # If you wish to specify custom queries, you can do so here or in a config file. |
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0f93930a..80d49f7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -24,7 +24,7 @@ jobs: | |||
24 | #... | 24 | #... |
25 | steps: | 25 | steps: |
26 | - name: Git clone repository | 26 | - name: Git clone repository |
27 | uses: actions/checkout@v2 | 27 | uses: actions/checkout@v3 |
28 | #- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate | 28 | #- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate |
29 | # uses: mxschmitt/action-tmate@v3 | 29 | # uses: mxschmitt/action-tmate@v3 |
30 | - name: Run the tests on ${{ matrix.distro }} | 30 | - name: Run the tests on ${{ matrix.distro }} |
@@ -40,7 +40,7 @@ jobs: | |||
40 | ${{ matrix.distro }} \ | 40 | ${{ matrix.distro }} \ |
41 | /bin/sh -c '${{ matrix.prepare }} && \ | 41 | /bin/sh -c '${{ matrix.prepare }} && \ |
42 | tools/setup && \ | 42 | tools/setup && \ |
43 | ./configure --enable-libtap --with-ipv6=no && \ | 43 | ./configure --enable-libtap --with-ipv6=no && \ |
44 | make && \ | 44 | make && \ |
45 | make test' | 45 | make test' |
46 | docker container prune -f | 46 | docker container prune -f |