Introducing the SecureFlag Code Recipes Repository on GitHub

Looking for ways to integrate security training into your development workflow? SecureFlag’s new code recipes repository might be just what you need.

It’s a growing collection of useful scripts, code snippets, and small demo apps that help teams get hands-on with the SecureFlag platform. 

Feature image of GitHub logo on SecureFlag background

Why These Recipes Are Valuable

SecureFlag code recipes aim to provide users with ways to interact with and experiment on the platform, and to understand how SecureFlag can be integrated into everyday development.

At the same time, they can also give managers and team leads visibility into assignments and progress.

If you’re exploring the API, testing out ideas, or looking for inspiration, the repository is for you. 

What You’ll Find in the Repository (So Far)

The repository contains practical examples designed to be straightforward to run and adapt to your own projects.

Git Hooks

For developers, we recently introduced Git hooks, which bring SecureFlag training and guidance directly into your local workflow. It automatically enforces vulnerability training compliance whenever a commit references a GitHub Security Advisory (GHSA).

User Assignment Report

For managers and team leads, there is the Users’ Assignment Report. It’s a Python script that retrieves all users in your organization, along with their assigned learning paths and exercises.

It then exports the combined results to a CSV report, giving you practical examples of API integration. 

Bulk Unassignment of Pending Activities

This Python script lets managers or team leads remove pending user assignments through the SecureFlag APIs. Completed activities remain marked as solved, and unassigned activities can be reassigned later via the management UI or APIs.

Get Started in 5 Minutes

No complex setup required, as each recipe includes step-by-step documentation and can run independently.

  1. Clone or fork the repository: Get a local copy so you can start exploring the examples right away.

  2. Pick your use case: Browse the examples and find what matches your needs.

  3. Test safely: Run everything in your development environment first.

  4. Customize and deploy: Adapt the code to your organization’s specific requirements.

You can run them as-is or adapt them to suit your organization’s needs. If you build something that others could benefit from, consider contributing back!

Join the Conversation

The code recipes repository is just getting started. We’ll continue adding new scripts, snippets, and demo apps over time, and we’d love to hear from the community. 

If you have an idea for a new example or integration, open an issue or submit a pull request on GitHub. 

About SecureFlag

SecureFlag helps teams create safer applications from the very first keystroke. Our platform delivers hands-on secure coding training and interactive learning paths in real development environments. 

Combining training with practical solutions, such as the code recipes repository, SecureFlag ensures that security knowledge is learned and applied directly in daily development practices.

Want to see SecureFlag in action? Schedule a demo

Continue reading