Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow global arguments to be passed #17

Open
0xabdi opened this issue Aug 28, 2024 · 0 comments
Open

allow global arguments to be passed #17

0xabdi opened this issue Aug 28, 2024 · 0 comments

Comments

@0xabdi
Copy link

0xabdi commented Aug 28, 2024

Can the action be updated to allow global options to be passed instead of just allowing options for ggshield secret scan

I am trying to pass the --config-path argument to this action so that I can specify my gitguardian instance URL but it is throwing this error:

Usage: ggshield secret scan [OPTIONS] COMMAND [ARGS]...
Try 'ggshield secret scan -h' for help.
Error: No such option: --config-path

Here is how my action call looks like:

- uses: GitGuardian/ggshield/actions/[email protected]
        with:
            args: --config-path ./custom_config.yaml
        env:
          GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
          GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
          GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }}
          GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
          GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}

And here are the contents of the custom_config.yaml file:

version: 2

instance: https://gitguardian.orgname.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant