Skip to content

Github Action to check SSL/TLS ciphers, protocols, cryptographic flaws + much more

License

Notifications You must be signed in to change notification settings

s01ipsist/test-ssl-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-ssl-action

GitHub Action to check SSL/TLS ciphers, protocols, cryptographic flaws + much more using testssl.sh.

Can be used to generate inputs for other security tools such as test-ssl-auditor-action

Usage

name: Test SSL
on: [push]

jobs:
  test-ssl:
    runs-on: ubuntu-latest
    steps:
      - name: Test SSL/TLS
        uses: s01ipsist/test-ssl-action@main
        with:
          uri: 'https://expired.badssl.com/'

      - name: Upload results
        uses: actions/upload-artifact@v6
        with:
          name: testssl-results
          path: testssl_results_*.json

Testing Multiple URIs with Matrix Strategy

You can test multiple URIs in parallel using a matrix strategy:

name: Test SSL Matrix
on: [push]

jobs:
  test-ssl-matrix:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      actions: read
    strategy:
      matrix:
        uri:
          - 'https://badssl.com/'
          - 'https://mozilla-old.badssl.com/'
    steps:
      - name: Test SSL/TLS for ${{ matrix.uri }}
        uses: s01ipsist/test-ssl-action@main
        with:
          uri: ${{ matrix.uri }}

      - name: Upload results
        uses: actions/upload-artifact@v6
        if: always()
        with:
          name: testssl-results-${{ strategy.job-index }}
          path: testssl_results_*.json

Inputs

  • uri (required): The URI to test (e.g., https://expired.badssl.com/)

Outputs

The action saves JSON results to testssl_results_<timestamp>.json.

About testssl.sh

This action uses the drwetter/testssl.sh Docker image to perform comprehensive SSL/TLS testing.

Test Locally

After you've cloned the repository to your local machine or codespace, you'll need to perform some initial setup steps before you can test your action.

  1. 🛠️ Build the container

    docker build --platform=linux/amd64 -t test-ssl-action .
  2. ✅ Test the container

    docker run --platform=linux/amd64 --env INPUT_URI="https://expired.badssl.com/" test-ssl-action

About

Github Action to check SSL/TLS ciphers, protocols, cryptographic flaws + much more

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •