Title: Avoid printing an error message when `upload-sarif` location is not a git directory · Issue #1162 · github/codeql-action · GitHub
Open Graph Title: Avoid printing an error message when `upload-sarif` location is not a git directory · Issue #1162 · github/codeql-action
X Title: Avoid printing an error message when `upload-sarif` location is not a git directory · Issue #1162 · github/codeql-action
Description: I have a workflow which has to check out the repo to a specific (non-default) directory. The upload-sarif action produces this error: fatal: not a git repository (or any of the parent directories): .git Failed to call git to get current ...
Open Graph Description: I have a workflow which has to check out the repo to a specific (non-default) directory. The upload-sarif action produces this error: fatal: not a git repository (or any of the parent directories):...
X Description: I have a workflow which has to check out the repo to a specific (non-default) directory. The upload-sarif action produces this error: fatal: not a git repository (or any of the parent directories):...
Opengraph URL: https://github.com/github/codeql-action/issues/1162
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid printing an error message when `upload-sarif` location is not a git directory","articleBody":"I have a workflow which has to check out the repo to a specific (non-default) directory.\r\n\r\nThe upload-sarif action produces this error:\r\n\r\n```\r\nfatal: not a git repository (or any of the parent directories): .git\r\nFailed to call git to get current commit. Continuing with data from environment or input: Error: The process '/usr/bin/git' failed with exit code 128\r\nError: The process '/usr/bin/git' failed with exit code 128\r\n at ExecState._setResult (/home/runner/work/_actions/github/codeql-action/v2/node_modules/@actions/exec/lib/toolrunner.js:592:25)\r\n at ExecState.CheckComplete (/home/runner/work/_actions/github/codeql-action/v2/node_modules/@actions/exec/lib/toolrunner.js:575:18)\r\n at ChildProcess.\u003canonymous\u003e (/home/runner/work/_actions/github/codeql-action/v2/node_modules/@actions/exec/lib/toolrunner.js:469:27)\r\n at ChildProcess.emit (node:events:390:28)\r\n at maybeClose (node:internal/child_process:1064:16)\r\n at Socket.\u003canonymous\u003e (node:internal/child_process:450:11)\r\n at Socket.emit (node:events:390:[28](https://github.com/argoproj/argo-cd/runs/7634411066?check_suite_focus=true#step:5:29))\r\n at Pipe.\u003canonymous\u003e (node:net:687:12)\r\n```\r\n\r\nI believe the action expects the working directory to be a git repo. ","author":{"url":"https://github.com/crenshaw-dev","@type":"Person","name":"crenshaw-dev"},"datePublished":"2022-08-02T15:08:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1162/codeql-action/issues/1162"}
| 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:21e14e1e-a526-76b9-864f-6dfeb8689f4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0F6:2D5E27:7B7273:A5FD2F:6A51DACD |
| html-safe-nonce | d9ef72306c1fd2b6d69d3560388115e5831ae1830b9cfbc1cf8d718274698553 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEY2OjJENUUyNzo3QjcyNzM6QTVGRDJGOjZBNTFEQUNEIiwidmlzaXRvcl9pZCI6IjIzMzk3ODQ4NDA0NTc2MDc4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d47a2fce070c32a5fc9c60c0370f8b07d483371b927273399b1173cb85b0ed90 |
| hovercard-subject-tag | issue:1325998807 |
| 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/1162/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8c0ab9966a5d038c46cf5b052aa12bc9726f7e543fca854a90ba89ba4fe5f50/github/codeql-action/issues/1162 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8c0ab9966a5d038c46cf5b052aa12bc9726f7e543fca854a90ba89ba4fe5f50/github/codeql-action/issues/1162 |
| og:image:alt | I have a workflow which has to check out the repo to a specific (non-default) directory. The upload-sarif action produces this error: fatal: not a git repository (or any of the parent directories):... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | crenshaw-dev |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width