Skip to content

mismatched/tower-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Tower Template

GitHub Actions template repository for running network health checks with tower.

Usage

  1. Click Use this templateCreate a new repository
  2. Edit .github/workflows/tower-health.yml with your targets
  3. Commit — checks run on schedule and on push

Included workflows

Workflow Schedule Checks
tower-health.yml Every 6 hours TCP, HTTP, HTTPS (no warn), DNS
tls-cert-expiry.yml Daily at 8am HTTPS TLS cert validity

Adding cert expiry warnings

The composite action doesn't expose warn_if_expiring directly. To get cert expiry warnings, create a config file and use the config input:

# .github/tower/checks.yml
checks:
  - type: https
    host: "example.com"
    warn_if_expiring: 720h   # warn if cert expires within 30 days
# .github/workflows/health-check.yml
steps:
  - uses: actions/checkout@v4       # needed to read the config file
  - uses: mismatched/tower@master
    with:
      config: '.github/tower/checks.yml'

The action fails if any check returns "OK": false or if a cert expiry warning is triggered.

About

GitHub Actions template for tower network health checks

Resources

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors