summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorKristian Schuster <116557017+KriSchu@users.noreply.github.com>2023-02-19 23:49:18 +0100
committerKristian Schuster <116557017+KriSchu@users.noreply.github.com>2023-02-19 23:49:18 +0100
commita0d42777217296c0a7bdb1e1be8d8f6de1b24dd7 (patch)
tree8effe94c57b2f9796ba36090b07551baa8f1e1cb /.github
parentca3d59cd6918c9e2739e783b721d4c1122640fd3 (diff)
parentc07206f2ccc2356aa74bc6813a94c2190017d44e (diff)
downloadmonitoring-plugins-a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7.tar.gz
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option
Diffstat (limited to '.github')
-rw-r--r--.github/dependabot.yml10
-rwxr-xr-x.github/prepare_debian.sh62
-rw-r--r--.github/workflows/codeql-analysis.yml4
-rw-r--r--.github/workflows/test.yml4
4 files changed, 60 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 @@
1version: 2
2updates:
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..5222659e 100755
--- a/.github/prepare_debian.sh
+++ b/.github/prepare_debian.sh
@@ -5,27 +5,58 @@ set -e
5 5
6export DEBIAN_FRONTEND=noninteractive 6export DEBIAN_FRONTEND=noninteractive
7 7
8sed "s/main/non-free contrib/g" /etc/apt/sources.list.d/debian.sources > /etc/apt/sources.list.d/debian-nonfree.sources
8apt-get update 9apt-get update
9apt-get -y install software-properties-common 10apt-get -y install software-properties-common
10if [ $(lsb_release -is) = "Debian" ]; then 11if [ $(lsb_release -is) = "Debian" ]; then
11 apt-add-repository non-free 12 apt-add-repository non-free
12 apt-get update 13 apt-get update
13fi 14fi
14apt-get -y install perl autotools-dev libdbi-dev libldap2-dev libpq-dev libradcli-dev libnet-snmp-perl procps 15apt-get -y install perl \
15apt-get -y install libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd 16 autotools-dev \
16apt-get -y install fping snmp netcat-openbsd smbclient vsftpd apache2 ssl-cert postfix libhttp-daemon-ssl-perl 17 libdbi-dev \
17apt-get -y install libdbd-sybase-perl libnet-dns-perl 18 libldap2-dev \
18apt-get -y install slapd ldap-utils 19 libpq-dev \
19apt-get -y install gcc make autoconf automake gettext 20 libradcli-dev \
20apt-get -y install faketime 21 libnet-snmp-perl \
21apt-get -y install libmonitoring-plugin-perl 22 procps \
22apt-get -y install libcurl4-openssl-dev 23 libdbi0-dev \
23apt-get -y install liburiparser-dev 24 libdbd-sqlite3 \
24apt-get -y install squid 25 libssl-dev \
25apt-get -y install openssh-server 26 dnsutils \
26apt-get -y install mariadb-server mariadb-client libmariadb-dev 27 snmp-mibs-downloader \
27apt-get -y install cron iputils-ping 28 libsnmp-perl \
28apt-get -y install iproute2 29 snmpd \
30 fping \
31 snmp \
32 netcat-openbsd \
33 smbclient \
34 vsftpd \
35 apache2 \
36 ssl-cert \
37 postfix \
38 libhttp-daemon-ssl-perl \
39 libdbd-sybase-perl \
40 libnet-dns-perl \
41 slapd \
42 ldap-utils \
43 gcc \
44 make \
45 autoconf \
46 automake \
47 gettext \
48 faketime \
49 libmonitoring-plugin-perl \
50 libcurl4-openssl-dev \
51 liburiparser-dev \
52 squid \
53 openssh-server \
54 mariadb-server \
55 mariadb-client \
56 libmariadb-dev \
57 cron \
58 iputils-ping \
59 iproute2
29 60
30# remove ipv6 interface from hosts 61# remove ipv6 interface from hosts
31if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then 62if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then
@@ -37,7 +68,6 @@ ip addr show
37 68
38cat /etc/hosts 69cat /etc/hosts
39 70
40
41# apache 71# apache
42a2enmod ssl 72a2enmod ssl
43a2ensite default-ssl 73a2ensite 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