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

🐛 Fix error when scanning GitHub user repo #247

Merged
merged 3 commits into from
Aug 14, 2023

Commits on Aug 14, 2023

  1. 🐛 Fix error when scanning GitHub user repo

    Before, scanning a user repo with this policy resulted in two errors:
    
    ```
    ! resolver.db> failed to store data, types don't match asset=//policy.api.mondoo.com/assets/2TWAyduY7PG2mz6cThAiw6izaBH checksum=ykt2Zc3Oo80XLuytqsUSE6fkGlJZvq7kE0pZrR8YX027tEtyd8TYI7RxI8EWAuL8wTzhWljY4P3OYN3mdmohOA== data={"type":"\u001bgithub.organization"} expected=block received=github.organization
    x failed to send datapoints error="1 error occurred:\n\t* failed to store data for \"ykt2Zc3Oo80XLuytqsUSE6fkGlJZvq7kE0pZrR8YX027tEtyd8TYI7RxI8EWAuL8wTzhWljY4P3OYN3mdmohOA==\", types don't match: expected block, got github.organization\n\n"
    ```
    
    and
    
    ```
    cannot convert primitive with NO type information
    ```
    
    related to mondoohq/cnquery#957
    
    Signed-off-by: Christian Zunker <[email protected]>
    czunker committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    13b4061 View commit details
    Browse the repository at this point in the history
  2. Integrate feedback

    Signed-off-by: Christian Zunker <[email protected]>
    czunker committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    970f6c5 View commit details
    Browse the repository at this point in the history
  3. Fix formatting

    Signed-off-by: Christian Zunker <[email protected]>
    czunker committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    54f8d5b View commit details
    Browse the repository at this point in the history