Coder Social home page Coder Social logo

Comments (7)

niall-byrne avatar niall-byrne commented on June 6, 2024

This is totally possible, I believe you can control the number of commits you check out with actions/checkout@v2.

from gitleaks-action.

stone-z avatar stone-z commented on June 6, 2024

This is totally possible, I believe you can control the number of commits you check out with actions/checkout@v2.

For sure, I think the question still remains how to determine how many commits to check out. If the commits are known, we could also use the same approach as is used for PRs (with the commit list). But a user could push arbitrarily many commits in a single push, and I haven't yet managed to find a git- or GitHub-native way to see what they are.

from gitleaks-action.

niall-byrne avatar niall-byrne commented on June 6, 2024

https://github.community/t/how-to-get-all-pushed-commit-information/116861/3

from gitleaks-action.

stone-z avatar stone-z commented on June 6, 2024

๐Ÿ˜ฎ yeah that looks like it should work. I'll cook up a PR. Thanks!

from gitleaks-action.

crazy-matt avatar crazy-matt commented on June 6, 2024

I believe the scan is performed on all branches as the gitleaks action does not allow to pass the --branch parameter to narrow down the scan. Which leads to some issues on the push event when working as a team with multiple feature branches.

from gitleaks-action.

crazy-matt avatar crazy-matt commented on June 6, 2024

โ˜๐Ÿผ potential fix: #38

from gitleaks-action.

zricethezav avatar zricethezav commented on June 6, 2024

Hi @stone-z as you already know, we released version 2.0 which fixes this problem. Only relevant commits will be scanned.

from gitleaks-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.