Skip to content

cds-snc/github-secret-scanning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github secret scanning alert service 🔬 ⚠️

This repo holds the API and infrastructure code for the Github secret scanning alert service.

When GitHub detects our registered secrets in public repositories, it will send an alert to this service. The detected secret will be logged and an alarm triggered so the impacted team can take action.

Local development

  1. Start the devcontainer.
  2. Make a copy of api/.env.example and name it api/.env.
  3. Run cd api && make dev and access on localhost:8000.

Your requests to the API will need an X-CloudFront-Header with the value you set in the api/.env file for CLOUDFRONT_HEADER:

curl http://localhost:8000/version \
    -H "X-CloudFront-Header: some-secret-value"

Alternatively, you can set CLOUDFRONT_HEADER=localhost to disable this check.