An expired SSL certificate is one of the most embarrassing ways for a website to break. Visitors see a scary browser warning, traffic drops, and you usually find out from a user instead of from your own monitoring.
Paid uptime monitors solve this, but if you run a few side projects or small business sites, there's a free option you probably already have: GitHub Actions.
In this post I'll show you how to set up a scheduled health check that:
- Checks if your sites are up (status code and response time)
- Warns you when an SSL certificate is close to expiring
- Detects redirect chains and redirect loops
- Checks whether Gzip or Brotli compression is enabled
- Emails you automatically when something is wrong
Total setup time: about 3 minutes.
Step 1: Create a repository
You can use any repo, including a private one. I like keeping a small monitoring repo just for this.
Step 2: Add the workflow
Create a file at .github/workflows/website-health.yml:
name: Website Health Check on: schedule: - cron: "0 */6 * * *" # every 6 hours workflow_dispatch: # lets you run it manually jobs: check: runs-on: ubuntu-latest steps: - uses: webtoolsrealm/website-checker-cli@v1 with: urls: "https://yoursite.com https://blog.yoursite.com" ssl-warn-days: "14" fail-on-problem: "true" Replace the URLs with your own. You can add as many as you like, separated by spaces.
Step 3: Commit and run it
Commit the file, open the Actions tab, select Website Health Check, and click Run workflow. About 25 seconds later you'll get a report like this in the job summary:
| Site | Status | Response | SSL | Redirects | Compression | Result |
|---|---|---|---|---|---|---|
| https://yoursite.com | ✅ 200 | 452 ms | ✅ 59d left | 0 | br | ✅ Healthy |
| https://blog.yoursite.com | ✅ 200 | 362 ms | ⚠️ 9d left | 0 | br | ⚠️ SSL expires in 9 days |
How the alerts work
There's no extra service and no API key. With fail-on-problem: "true", the workflow fails whenever it finds a problem, and GitHub already emails you when a scheduled workflow fails.
So you get an alert when:
- A site returns a 4xx or 5xx error, or doesn't respond
- An SSL certificate is invalid or expires within
ssl-warn-days - A redirect loop appears
- Compression is turned off
Make sure notifications are on under GitHub Settings → Notifications → Actions → "Send notifications for failed workflows only".
Choosing a schedule
The cron line controls how often the check runs:
| Schedule | Cron |
|---|---|
| Every hour | 0 * * * * |
| Every 6 hours | 0 */6 * * * |
| Once a day at 9:00 UTC | 0 9 * * * |
Two honest caveats:
- GitHub doesn't guarantee exact timing for scheduled workflows. Runs can be delayed by several minutes when GitHub is busy. This setup is good for catching problems within hours, not seconds. If you need minute-level alerting for a production app, use a dedicated uptime service.
- In a public repo, GitHub disables scheduled workflows after 60 days with no repository activity. Any commit re-enables them.
For SSL expiry, broken redirects and "is my side project still alive?" checks, it works very well.
Bonus: run the same checks locally
The action is a wrapper around a small open-source Python CLI, so you can run the same checks from your terminal:
pip install git+https://github.com/webtoolsrealm/website-checker-cli.git wtr check yoursite.com # full health check wtr ssl yoursite.com # certificate details and days left wtr redirects yoursite.com # trace the full redirect chain wtr headers yoursite.com # response headers plus missing security headers wtr dns yoursite.com # A, AAAA, MX, NS, TXT records Add --json to any command if you want to pipe the output into another script.
If you'd rather not install anything, the same checks are available as free browser tools at webtoolsrealm.com, for example the SSL Checker and Redirect Checker.
Wrapping up
Fifteen lines of YAML gets you free uptime and SSL monitoring for every site you run, with email alerts and no new accounts.
The project is MIT-licensed and open to contributions: github.com/webtoolsrealm/website-checker-cli. If it's useful to you, a ⭐ helps other people find it.
What do you use to monitor your side projects? I'd like to hear about other setups in the comments.

