Title: upload-sarif@v2 Doesn't support `suppressions` property in Sarif files. · Issue #1230 · github/codeql-action · GitHub
Open Graph Title: upload-sarif@v2 Doesn't support `suppressions` property in Sarif files. · Issue #1230 · github/codeql-action
X Title: upload-sarif@v2 Doesn't support `suppressions` property in Sarif files. · Issue #1230 · github/codeql-action
Description: I've recently noticed, when running semgrep, that findings that are suppressed in code with #nosemgrep flag the results with a suppressions property. This seems to be valid sarif formatting. Example of a result: { "$schema": "https://doc...
Open Graph Description: I've recently noticed, when running semgrep, that findings that are suppressed in code with #nosemgrep flag the results with a suppressions property. This seems to be valid sarif formatting. Exampl...
X Description: I've recently noticed, when running semgrep, that findings that are suppressed in code with #nosemgrep flag the results with a suppressions property. This seems to be valid sarif formatting. Ex...
Opengraph URL: https://github.com/github/codeql-action/issues/1230
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"upload-sarif@v2 Doesn't support `suppressions` property in Sarif files.","articleBody":"I've recently noticed, when running `semgrep`, that findings that are suppressed in code with `#nosemgrep` flag the results with a `suppressions` property. This seems to be [valid sarif formatting](https://docs.oasis-open.org/sarif/sarif/v2.1.0/csprd01/sarif-v2.1.0-csprd01.html#_Toc10541099).\r\n\r\nExample of a result:\r\n```\r\n{\r\n \"$schema\": \"https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/schemas/sarif-schema-2.1.0.json\",\r\n \"runs\": [\r\n {\r\n \"invocations\": [\r\n {\r\n \"executionSuccessful\": true,\r\n \"toolExecutionNotifications\": []\r\n }\r\n ],\r\n \"results\": [\r\n {\r\n \"locations\": [\r\n {\r\n \"physicalLocation\": {\r\n \"artifactLocation\": {\r\n \"uri\": \"backend/opre_ops/django_config/settings/common.py\",\r\n \"uriBaseId\": \"%SRCROOT%\"\r\n },\r\n \"region\": {\r\n \"endColumn\": 15,\r\n \"endLine\": 91,\r\n \"snippet\": {\r\n \"text\": \"REST_FRAMEWORK = { # nosemgrep: python.django.security.audit.django-rest-framework.missing-throttle-config.missing-throttle-config\"\r\n },\r\n \"startColumn\": 1,\r\n \"startLine\": 91\r\n }\r\n }\r\n }\r\n ],\r\n \"message\": {\r\n \"text\": \"Django REST framework configuration is missing default rate- limiting options. This could inadvertently allow resource starvation or Denial of Service (DoS) attacks. Add 'DEFAULT_THROTTLE_CLASSES' and 'DEFAULT_THROTTLE_RATES' to add rate-limiting to your application.\"\r\n },\r\n \"ruleId\": \"python.django.security.audit.django-rest-framework.missing-throttle-config.missing-throttle-config\",\r\n \"suppressions\": [\r\n {\r\n \"kind\": \"inSource\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"tool\": {\r\n \"driver\": {\r\n \"name\": \"semgrep\",\r\n \"rules\": [\r\n {\r\n \"defaultConfiguration\": {\r\n \"level\": \"error\"\r\n },\r\n ...\r\n \"semanticVersion\": \"0.111.1\"\r\n }\r\n }\r\n }\r\n ],\r\n \"version\": \"2.1.0\"\r\n}\r\n```\r\n\r\nWhen results like this are uploaded via the `github/codeql-action/upload-sarif@v2` the results are still propagated as-if valid findings.\r\n\r\nShouldn't these be ignored, or flagged in some other way? ","author":{"url":"https://github.com/tdonaworth","@type":"Person","name":"tdonaworth"},"datePublished":"2022-09-02T01:09:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/1230/codeql-action/issues/1230"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6a51090d-eaf4-2290-1976-8600db302b01 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8EC:2FA5EC:E1B6F:12C8E8:6A4D9389 |
| html-safe-nonce | 6c000c1ba725075749eb7d09ba990299e806a5c4161198b92a529ce24b1e1a57 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEVDOjJGQTVFQzpFMUI2RjoxMkM4RTg6NkE0RDkzODkiLCJ2aXNpdG9yX2lkIjoiNDQ3NzM1MTIxMTQwMjM2Nzg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 13837a4d3a6b7f19e1b9aa13b4f1ad52dddf1cd7ac44f71f4f214388e7ca8f82 |
| hovercard-subject-tag | issue:1359587396 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/1230/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6da49c5b74ba4b932122387f26a9e360439180049a0f07c5e2764d890fcab8e5/github/codeql-action/issues/1230 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6da49c5b74ba4b932122387f26a9e360439180049a0f07c5e2764d890fcab8e5/github/codeql-action/issues/1230 |
| og:image:alt | I've recently noticed, when running semgrep, that findings that are suppressed in code with #nosemgrep flag the results with a suppressions property. This seems to be valid sarif formatting. Exampl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tdonaworth |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-action git https://github.com/github/codeql-action.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 259445878 |
| octolytics-dimension-repository_nwo | github/codeql-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 259445878 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 74e2a9c78f1e38588de4f25885878349d721eedf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width