Title: Recursive SARIF file detection from `upload-sarif` sarif_file parameter · Issue #220 · github/codeql-action · GitHub
Open Graph Title: Recursive SARIF file detection from `upload-sarif` sarif_file parameter · Issue #220 · github/codeql-action
X Title: Recursive SARIF file detection from `upload-sarif` sarif_file parameter · Issue #220 · github/codeql-action
Description: I created a workflow that runs Clang scan-build with the -sarif parameter, to output SARIF format, and the -o build/sarif argument to put the output in the directory build/sarif. When it is run, scan-build puts the actual SARIF files in ...
Open Graph Description: I created a workflow that runs Clang scan-build with the -sarif parameter, to output SARIF format, and the -o build/sarif argument to put the output in the directory build/sarif. When it is run, sc...
X Description: I created a workflow that runs Clang scan-build with the -sarif parameter, to output SARIF format, and the -o build/sarif argument to put the output in the directory build/sarif. When it is run, sc...
Opengraph URL: https://github.com/github/codeql-action/issues/220
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Recursive SARIF file detection from `upload-sarif` sarif_file parameter","articleBody":"I [created a workflow](https://github.com/tlsa/libcyaml/blob/tlsa/codeql/.github/workflows/static-analysis.yaml#L74) that runs Clang scan-build with the `-sarif` parameter, to output SARIF format, and the `-o build/sarif` argument to put the output in the directory `build/sarif`.\r\n\r\nWhen it is run, scan-build puts the actual SARIF files in a sub-directory of the specified output directory.\r\n\r\nThe output from scan-build is:\r\n\r\n```\r\nscan-build: Analysis run complete.\r\nscan-build: Analysis results (sarif files) deposited in '/home/runner/work/libcyaml/libcyaml/build/sarif/2020-09-18-110804-4323-1'\r\n```\r\n\r\nAnd the sarif files are in the randomly named sub-directory:\r\n\r\n```\r\n$ find build/sarif\r\nbuild/sarif\r\nbuild/sarif/2020-09-18-110804-4323-1\r\nbuild/sarif/2020-09-18-110804-4323-1/report-B4xj3N.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-yK7dxl.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-SrmlCl.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-QPrVcF.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-67tbyT.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-OfHm5E.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-T8GZn7.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-NKjLYw.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-z81jQ7.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-bmXRUK.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-6aH1dl.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-iK7eHK.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-vnqcCF.sarif\r\nbuild/sarif/2020-09-18-110804-4323-1/report-aATCA3.sarif\r\n```\r\n\r\nYou can see the CI run for this here: https://github.com/tlsa/libcyaml/runs/1133489433\r\n\r\nAt the moment, with\r\n\r\n```\r\n - name: upload scan-build\r\n uses: github/codeql-action/upload-sarif@v1\r\n with:\r\n sarif_file: build/sarif\r\n```\r\n\r\nI get the following error:\r\n\r\n```\r\n#[error]No SARIF files found to upload in \"build/sarif\".\r\nError: No SARIF files found to upload in \"build/sarif\".\r\n at Object.upload (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-lib.js:114:19)\r\n at run (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-sarif-action.js:29:46)\r\n```\r\n\r\nCould the `sarif_file` directory parameter be changed to a recursive search through the directory for SARIF files?","author":{"url":"https://github.com/tlsa","@type":"Person","name":"tlsa"},"datePublished":"2020-09-18T11:22:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/220/codeql-action/issues/220"}
| 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:f9ca6857-60c3-ba0b-d015-3aaf096faedf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 913C:27A3BF:172C8E2:1FA4BF5:6A53E15F |
| html-safe-nonce | aa0c6035d77ab4be86efe4e34217929bf1520a3e7892dac452e2401f76516863 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTNDOjI3QTNCRjoxNzJDOEUyOjFGQTRCRjU6NkE1M0UxNUYiLCJ2aXNpdG9yX2lkIjoiODc4MjcyMTc1MTQxNzM0ODQ0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c7a7a157872c1702b61dc0af015f9117ac82c902b88c19f79150d0c58979388d |
| hovercard-subject-tag | issue:704302524 |
| 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/220/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f062e48bd73390766dde6a4cf3472005836b219aec3af3004ca572f5c97f64ef/github/codeql-action/issues/220 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f062e48bd73390766dde6a4cf3472005836b219aec3af3004ca572f5c97f64ef/github/codeql-action/issues/220 |
| og:image:alt | I created a workflow that runs Clang scan-build with the -sarif parameter, to output SARIF format, and the -o build/sarif argument to put the output in the directory build/sarif. When it is run, sc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tlsa |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width