Title: Add baseline metrics for lines of code by aeisenberg · Pull Request #459 · github/codeql-action · GitHub
Open Graph Title: Add baseline metrics for lines of code by aeisenberg · Pull Request #459 · github/codeql-action
X Title: Add baseline metrics for lines of code by aeisenberg · Pull Request #459 · github/codeql-action
Description: This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which files should be counted. The lines of code count is returned by language and injected into the SARIF as appropriate. Currently, this PR adds the LoC data in the metricResults property of the sarif in a blob like this: { metric: `baseline/${language}/lines-of-code`, value: lineCounts[language] } We haven't agreed on what this will look like, so injecting the metric may change. We've decided that the lines of code will be injected into metrics with id like this: ${language}/summary/lines-of-code and a new baseline property is added to the metric. Languages that we have a count for, but no metric, will be ignored. Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.
Open Graph Description: This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which fil...
X Description: This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which fil...
Opengraph URL: https://github.com/github/codeql-action/pull/459
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4880d3d7-35aa-ea6c-1c1b-037b66680b16 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9DF2:3F1247:17FB07A:20BFF9E:6A53F0DB |
| html-safe-nonce | 83827141764e5042f110ffac601e48f662cc564a3a4dd6099ae86f25f7c988ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REYyOjNGMTI0NzoxN0ZCMDdBOjIwQkZGOUU6NkE1M0YwREIiLCJ2aXNpdG9yX2lkIjoiODcyNjU4MDQwNDIzNTI2ODMxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eeca3694f5cd105fbf30c283017f247b53893bccca18a09e3a74573daf5dc2e2 |
| hovercard-subject-tag | pull_request:621611414 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/github/codeql-action/pull/459/files |
| twitter:image | https://avatars.githubusercontent.com/u/363559?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/363559?s=400&v=4 |
| og:image:alt | This commit uses a third party library to estimate the lines of code in a database that is to be analyzed by codeql. The estimate uses the same includes and excludes globs for determining which fil... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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