<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/tags/gitguardian/best-of/2022" -->

---
title: Best GitGuardian posts of 2022 | daily.dev
description: The most upvoted GitGuardian posts of 2022, curated by the daily.dev community.
canonical: https://daily.dev/tags/gitguardian/best-of/2022
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/tags/gitguardian/best-of/2022
og:type: website
og:site_name: daily.dev
og:title: Best GitGuardian posts of 2022 | daily.dev
og:description: The most upvoted GitGuardian posts of 2022, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of GitGuardian — 2022

1. 1  
[](/posts/github-leak-github-secrets-best-practices-7gzija7vw "GitHub Leak: GitHub secrets best practices")  
Article  
![Avatar of community](https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community)Community Picks · 4y  
GitHub Leak: GitHub secrets best practices  
This post will go through the four steps needed to remove the risk and make sure it doesn't happen in the future. We are going to use the well-known BFG Repo-Cleaner The BFG is a simpler, faster (10 - 720x faster) alternative to git-filter-branch for cleansing bad data out of your git repository.  
55
2. 2  
[](/posts/infrastructure-as-code-security-security-zines--ar5optfv8 "Infrastructure as Code Security [Security Zines]")  
Article  
![Avatar of gitguardian](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/406f3b707b1741f7b988cf561463a54d)GitGuardian · 4y  
Infrastructure as Code Security \[Security Zines\]  
IaC allows organizations to define and manage their infrastructure using code, rather than manually configuring resources. This can greatly improve efficiency, automation, and consistency in managing infrastructure. It also introduces new security risks if not properly implemented and managed. This article looks at how we can keep our infrastructure as code secure.  
29
3. 3  
[](/posts/best-practices-for-securing-your-repository-glmji-pqk "Best Practices for Securing Your Repository")  
Article  
![Avatar of dz](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/dz)DZone · 4y  
Best Practices for Securing Your Repository  
The GitHub Marketplace was first introduced during the GitHub Universe in 2016\. Navigate to the GitHub repository and have a look at how actively the maintainers and contributors are pushing into the project. Do they provide basic example usage, like a simple YAML file to start?  
23
4. 4  
[](/posts/automate-boring-tasks-with-hooks-ioeki8duz "Automate Boring Tasks With Hooks")  
Article  
![Avatar of dz](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/dz)DZone · 4y  
Automate Boring Tasks With Hooks  
GitGuardian's Sofien describes how pre-commit hooks are used to save time and secure commits company-wide. Hooks are a way to fire off custom scripts when certain important actions occur. The first set of hooks checks the syntax of JSON and YAML files, while the check-added-large- Files ensure that no one commits a huge file by mistake. Pre-commit Hooks and CI jobs are complementary.  
15

[See all GitGuardian archives](/tags/gitguardian/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/tags/gitguardian/best-of/2022#page","url":"https://daily.dev/tags/gitguardian/best-of/2022","name":"Best GitGuardian Posts of 2022","description":"The most upvoted GitGuardian posts of 2022, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/tags/gitguardian/best-of/2022#items","numberOfItems":4,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/github-leak-github-secrets-best-practices-7gzija7vw","name":"GitHub Leak: GitHub secrets best practices"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/infrastructure-as-code-security-security-zines--ar5optfv8","name":"Infrastructure as Code Security [Security Zines]"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/best-practices-for-securing-your-repository-glmji-pqk","name":"Best Practices for Securing Your Repository"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/automate-boring-tasks-with-hooks-ioeki8duz","name":"Automate Boring Tasks With Hooks"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tags","item":"https://daily.dev/tags"},{"@type":"ListItem","position":3,"name":"GitGuardian","item":"https://daily.dev/tags/gitguardian"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/tags/gitguardian/best-of"},{"@type":"ListItem","position":5,"name":"2022"}]}]}
```

