Skip to content
check-circle

GitHub Action

Analyse your HTTP response headers

v1.2.0 Latest version

Analyse your HTTP response headers

check-circle

Analyse your HTTP response headers

Quickly and easily assess the security of your HTTP response headers

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Analyse your HTTP response headers

uses: marcuslindblom/[email protected]

Learn more about this action in marcuslindblom/security-headers

Choose a version

Analyse your HTTP response headers

Quickly and easily assess the security of your HTTP response headers using securityheaders.com.

A simple example:

on:
  deployment_status

jobs:
  security-headers-check:
    name: Analyse HTTP response headers
    runs-on: ubuntu-latest    
    steps:
      - uses: actions/checkout@v2
        with:
          repository: marcuslindblom/security-headers
      - uses: marcuslindblom/security-headers@main
        with:
          url: ${{ secrets.SECURITY_HEADERS_URL }}
          followRedirects: true # This is optional
          grade: A

Example output:

Output