Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

ggshield - Kandji Custom Scripts

Kandji audit and remediation scripts to deploy and keep ggshield up to date on macOS.

Inspired by Installomator.

Scripts

ggshield_audit.sh

Custom Script (Audit) that checks whether ggshield is:

  • Installed at /usr/local/bin/ggshield
  • Code-signed with the expected GitGuardian Team ID (N67C7J5WQ9)
  • Running the latest version (fetched from GitHub releases)

Exit codes: 0 = pass, 1 = fail (triggers remediation).

If GitHub is unreachable, the version check is skipped to avoid false failures.

ggshield_remediation.sh

Symlink to ../shared/ggshield_install.sh. Custom Script (Remediation) that:

  1. Fetches the latest release from GitHub (supports both Apple Silicon and Intel)
  2. Verifies the .pkg signature via Gatekeeper (spctl) and validates the Team ID
  3. Confirms the package is notarized by Apple
  4. Installs the package and verifies the installed binary signature

Kandji Setup

  1. Create a Custom Script library item
  2. Set ggshield_audit.sh as the Audit Script
  3. Set ggshield_remediation.sh as the Remediation Script
  4. Assign to the appropriate Blueprint(s)