Skip to content

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
"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