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

chore: Update to owenrumney/go-sarif/v2 #2111

Merged
merged 1 commit into from
Sep 2, 2024
Merged

chore: Update to owenrumney/go-sarif/v2 #2111

merged 1 commit into from
Sep 2, 2024

Conversation

oWretch
Copy link
Contributor

@oWretch oWretch commented Sep 2, 2024

Update owenrumney/go-sarif to v2.3.3

Fixes #2017

@chenrui333
Copy link
Contributor

@oWretch thanks for your first contribution to tflint!

@chenrui333 chenrui333 merged commit 4bda000 into terraform-linters:master Sep 2, 2024
14 checks passed
"name": "tflint",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
"rules": [],
Copy link
Member

Choose a reason for hiding this comment

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

Are empty rules valid? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From https://github.com/oasis-tcs/sarif-spec/blob/123e95847b13fbdd4cbe2120fa5e33355d4a042b/Schemata/sarif-schema-2.1.0.json#L3045 yes an empty rule block is valid. I had to add this as the new report included an empty rules block on generation, instead of omitting it in the rc version.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for the explanation. Indeed, this seems to be valid even with the SARIF online validator.

@oWretch oWretch deleted the feat/go-sarif-v2 branch September 3, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Sarif output should use the final schema version
3 participants