Welcome to the SecureFlag code recipes repository! 🎉
Here you'll find handy scripts, code snippets, and small demo apps showcasing how to interact with the SecureFlag platform.
Whether you are exploring the API, testing out ideas, or looking for inspiration on how to integrate SecureFlag into your own organization, these examples are here to help you get up and running faster.
Bring SecureFlag training and guidance to your local workflow with Git hooks!
Automatically enforce SecureFlag's vulnerability training compliance whenever a commit references a GitHub Security Advisory (GHSA).
📖 Read the Git hooks README.md for setup instructions and details.
Leverage the power of the SecureFlag APIs with a Python script that retrieves all users in your organization, along with their assigned learning paths and exercises.
This script demonstrates how to collect user details, fetch assignments and activities for each user, and export the combined results to a CSV report; giving you practical examples of API integration.
💻 Read the documentation to download and customize the script to create the reports you need!
Easily remove SecureFlag assignments with a Python script that validates activities, resolves UUIDs, and removes user assignments through the APIs. The script fetches fresh catalogs, checks input for errors, and provides clear per-user summaries on completion.
💻 Read the documentation to download and customize the script to remove assigned activities!