gitleaks-action

Protect your secrets using Gitleaks-Action

OTHER License

Stars
323
Committers
15
gitleaks-action - v2.0.2

Published by zricethezav over 2 years ago

What's New

  • Fixed action.yml name so this action can be published on the marketplace
gitleaks-action - v2.0.1

Published by zricethezav over 2 years ago

What's New

  • Individual user accounts do not need to obtain a license key. 🎉
  • Added GITLEAKS_ENABLE_SUMMARY env var option to enable or disable Gitleaks-action job summaries (defaults to true)
  • Added GITLEAKS_ENABLE_UPLOAD_ARTIFACT env var option to enable or disable Gitleaks-action job artifact uploads (defaults to true)
gitleaks-action - v2.0.0

Published by zricethezav over 2 years ago

What's Changed

Gitleaks-Action Version 2 brings a range of new features including:

1. On demand scans

You can now use workflow_dispatch events to trigger on demand gitleaks scans.

2. Gitleaks report artifact uploads

Not much more to say here. Download reports when leaks are present. Pretty useful feature.

3. Powered by the latest version of Gitleaks

The latest version of gitleaks (v8.8.6 at the time of writing) has better performance, more configuration options, and is more accurate than the previous major version.

4. Job summaries

Easy to understand report of a Gitleaks job. If no leaks are detected you'll see:

If leaks are detected you'll see something like:

5. Faster job times

Gitleaks-Action Version 2 does not rely on Docker build anymore.

6. Pull Request Comments

If a leak is encountered during a pull request, gitleaks-action will comment on the line number and commit containing the secret.

What's fixed

  • Older versions of the gitleaks-action relied on using git log to determine the range of commits. Version 2 of gitleaks-action ensures that only relevent commits are scanned by leveraging Action context and GitHub's API.

Getting started with Version 2

Getting a License-Key (ONLY FOR ORGANIZATION REPOS, USER ACCOUNTS DO NOT NEED A LICENSE KEY)

Before enabling Gitleaks-Action Version 2, you will need to obtain a gitleaks-action license key from gitleaks.io if you are using gitleaks within the context of an organization. If you are using gitleaks-aciton on a user account's repo, you do not need a license key. You can sign up for a free license key that will grant you access to use gitleaks-action on one repo. The free tier sign up link will take you to a google forms page where you can fill out your information. After filling out your information, you should receive an email similar to the one below.

NOTE: be patient with the free tier, the google forms API can be slow.

NOTE: 1 free license per account.

If you would like access to more repos for your organization or personal account, you can subscribe to one of the paid tiers which will grant you access to use Gitleaks-Action Version 2 on 10, 100, or 1000 repos.

Setting the GITLEAKS_LICENSE secret

After getting a license key, head over to your github organization's or repo's settings and set GITLEAKS_LICENSE as a secret. Great! You can now run gitleaks-action v2:

name: gitleaks
on: [pull_request, push, workflow_dispatch]
jobs:
  scan:
    name: gitleaks
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - uses: zricethezav/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
gitleaks-action - v1

Published by zricethezav over 3 years ago

Floating v1.0 release

gitleaks-action - v1.6.0

Published by zricethezav over 3 years ago

  • Updated version of Gitleaks to v7.4.0 in Dockerfile
gitleaks-action - v1.5.0

Published by zricethezav over 3 years ago

Updated version of Gitleaks to v7.3.0 in Dockerfile

gitleaks-action - v1.4.0

Published by zricethezav over 3 years ago

gitleaks-action - v1.3.0

Published by zricethezav over 3 years ago

  • Allow setting the .gitleaks.toml configuration file path #11
  • Ensure ALL pushed commits are scanned and the default config is usable #22
  • Final changes to outputs #20
gitleaks-action - v1.2.0

Published by zricethezav almost 4 years ago

What's new

  • Works w/ v7.x.x of gitleaks
gitleaks-action - v1.1.4

Published by zricethezav about 4 years ago

Removing rm so we get the right exit code

gitleaks-action - v1.1.3

Published by zricethezav about 4 years ago

Use --commits-file instead of commit-from and commit-to

gitleaks-action - v1.1.2

Published by zricethezav over 4 years ago

Fixing typo

gitleaks-action - v1.1.1

Published by zricethezav over 4 years ago

Removing test echo

gitleaks-action - v1.1.0

Published by zricethezav over 4 years ago

Publishing gitleaks action to the marketplace

gitleaks-action - v1.0.0

Published by zricethezav over 4 years ago

Package Rankings
Top 1.15% on Github actions
Related Projects