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

json value in .grant.yaml doesn't work #49

Open
tomerse-sg opened this issue Feb 6, 2024 · 0 comments
Open

json value in .grant.yaml doesn't work #49

tomerse-sg opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tomerse-sg
Copy link

Hi,

I tried to run the binary using a simple config file as specified in the documentation:

#.grant.yaml
config: ".grant.yaml"
format: json # table, json
show-packages: false # show the packages which contain the licenses --show-packages
non-spdx: false # list only licenses that could not be matched to an SPDX identifier --non-spdx
osi-approved: false # highlight licenses that are not OSI approved --osi-approved
rules: 
    - pattern: "*gpl*"
      name: "deny-gpl"
      mode: "deny"
      reason: "GPL licenses are not allowed per xxx-xx company policy"
      exclusions:
        - "alpine-base-layout" # We don't link against this package so we don't care about its license

run the below line:
grant check redis:latest

I got table output instead of json output.

I think it will be better that the configuration will be "stronger" than command line (in case it is exists)
moreover, I used -c flag like this:
grant check redis:latest -c ./.grant.yaml
grant check redis:latest -c .grant.yaml

still printed it as a table.

Thanks a lot for your time!

@spiffcs spiffcs added the bug Something isn't working label Feb 6, 2024
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
Status: Backlog
Development

No branches or pull requests

2 participants