-
Notifications
You must be signed in to change notification settings - Fork 5
75 lines (70 loc) · 1.65 KB
/
tls.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: SSL/TLS scans
on:
schedule:
- cron: '34 2 * * *'
workflow_dispatch:
jobs:
tls:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tls-version:
- "1.2"
- "1.3"
url:
- michalspacek.cz
steps:
- name: Check TLS ${{ matrix.tls-version }} is available
run: |
curl \
--verbose \
--silent \
--output /dev/null \
--user-agent "GitHub Actions TLS check" \
--tls-max ${{ matrix.tls-version }} \
--tlsv${{ matrix.tls-version }} \
https://${{ matrix.url }}/
testssl:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
url:
- michalspacek.cz
steps:
- name: testssl.sh scan
uses: mbogh/test-ssl-action@v3
with:
host: ${{ matrix.url }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: testssl.sh reports
path: 'output/*'
certmonitor:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.2"
- "8.3"
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- run: php site/bin/certmonitor.php --colors --no-ipv6
env:
CERTMONITOR_USER: ${{ secrets.CERTMONITOR_USER }}
CERTMONITOR_KEY: ${{ secrets.CERTMONITOR_KEY }}
heartbeat:
runs-on: ubuntu-latest
if: always()
needs:
- tls
- testssl
- certmonitor
steps:
- run: curl --no-progress-meter ${{ secrets.SSLTLSSCANS_HEARTBEAT_URL }}