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

🧹 Update github policies to use new resource fields #436

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

jaym
Copy link
Contributor

@jaym jaym commented Sep 23, 2024

No description provided.

@jaym jaym marked this pull request as ready for review September 23, 2024 18:49
@HRouhani
Copy link
Contributor

we need to make sure the new added resources already released as I get:

could not compile policy bundle:failed to validate query '//local.cnspec.io/run/local-execution/queries/mondoo-github-repository-security-security-policy': failed to compile query 'github.repository.securityFile.exists
': cannot find field 'securityFile' in github.repository
failed to validate query '//local.cnspec.io/run/local-execution/queries/mondoo-github-organization-security-security-policy': failed to compile query 'if ( github.organization.repositories.one(name == ".github") ) {
github.organization.repositories.where( name == ".github").all(
securityFile.exists
) || github.repository.securityFile.exists
} else {
github.repository.securityFile.exists
}
': failed to compile: cannot find field or resource 'securityFile' in block for type 'github.repository'

@jaym
Copy link
Contributor Author

jaym commented Sep 24, 2024

hmm, can you check again:

❯ cnspec providers install github
→ installing provider 'github' version=11.4.14
→ successfully installed github provider path=/home/jaym/.config/mondoo/providers/github version=11.4.14

mondoohq/cnquery@aa30b50

@HRouhani HRouhani force-pushed the jdm/github-new-resources branch from aa0215e to be2d2ed Compare September 24, 2024 15:48
Copy link
Contributor

@HRouhani HRouhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jay, awesome

@HRouhani HRouhani merged commit 9d32573 into main Sep 24, 2024
7 checks passed
@HRouhani HRouhani deleted the jdm/github-new-resources branch September 24, 2024 16:16
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants