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

GHA - unable to add extra: --namespace -unknown flag #298

Closed
abacchilb opened this issue Apr 11, 2024 · 2 comments
Closed

GHA - unable to add extra: --namespace -unknown flag #298

abacchilb opened this issue Apr 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@abacchilb
Copy link
Contributor

TL;DR

Using the github action- when I want to just scope the analysis to certain namespaces and I pass the namespace flag to extras- I get errors.

Expected behavior

extra: "-n organization,actions"

Tool scans for organization and actions policies.

Observed behavior

for: extra: "--namespace organization"

Error: The process '/home/runner/work/_actions/Legit-Labs/legitify/main/legitify' failed with exit code 1 | stderr: Error: unknown flag: --namespace organization
2024/04/11 01:11:34 2024/04/11 01:11:34 error executing command: unknown flag: --namespace organization

for: extra: "-n actions"

Error: The process '/home/runner/work/_actions/Legit-Labs/legitify/main/legitify' failed with exit code 1 | stderr:

---> If you have any questions or you need assistance using legitify, please don't hesitate REACHING OUT @ legitify@legitsecurity.com
Error: invalid namespace actions

Version

1.0.7

On which operating system are you using legitify?

Linux

Relevant log output

No response

Additional information

I can run legitify analyze --namespace organization,actions in my cli and it works great with the same PAT.

Example GHA-


jobs:
  analyze_all:
    runs-on: ubuntu-latest
    steps:
      - name: Legitify Action
        uses: Legit-Labs/legitify@main
        with:
          github_token: ${{ secrets.PAT_FOR_LEGITIFY }}
          extra: "-n actions"
@abacchilb abacchilb added the bug Something isn't working label Apr 11, 2024
@noamd-legit
Copy link
Contributor

Thanks for opening the issue @abacchilb.
A fix will be available soon:
#300

@noamd-legit
Copy link
Contributor

merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants