Title: Check if on default branch before uploading database by robertbrignull · Pull Request #563 · github/codeql-action · GitHub
Open Graph Title: Check if on default branch before uploading database by robertbrignull · Pull Request #563 · github/codeql-action
X Title: Check if on default branch before uploading database by robertbrignull · Pull Request #563 · github/codeql-action
Description: (Note this is merging into a feature branch, and not into main) We only want to upload a CodeQL database if analyzing the default branch, and this will avoid unnecessary uploads and help ensure we always have a recent database uploaded. For now we don't care about other branches and don't want them polluting the cache of databases for the default branch. I initially thought we would have to check this on the github side, but turns out we can easily find out the default branch of the repository from the action. I have tested this by running this branch of the action from a branch, a PR, and on master, and confirmed the behaviour in each case.
Open Graph Description: (Note this is merging into a feature branch, and not into main) We only want to upload a CodeQL database if analyzing the default branch, and this will avoid unnecessary uploads and help ensure we ...
X Description: (Note this is merging into a feature branch, and not into main) We only want to upload a CodeQL database if analyzing the default branch, and this will avoid unnecessary uploads and help ensure we ...
Opengraph URL: https://github.com/github/codeql-action/pull/563
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:612b34a7-f444-4e43-0077-4cef941f5a56 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D22E:A9C5B:100A8DD:1763332:6A5771A1 |
| html-safe-nonce | 5ae3cfd4d7b7e477e1d245a26c6bac7f029ffe505cf6d17f74ebc58e85f478ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjJFOkE5QzVCOjEwMEE4REQ6MTc2MzMzMjo2QTU3NzFBMSIsInZpc2l0b3JfaWQiOiI0OTQxMzAyNTk3MDI1NDI3NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9a0b70a6d83f492cc266e810bc4bb9d70e6fa742dbd967561b41660ffe7eda9 |
| hovercard-subject-tag | pull_request:671505388 |
| 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/563/files |
| twitter:image | https://avatars.githubusercontent.com/u/3749000?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3749000?s=400&v=4 |
| og:image:alt | (Note this is merging into a feature branch, and not into main) We only want to upload a CodeQL database if analyzing the default branch, and this will avoid unnecessary uploads and help ensure we ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | c0ca805e53f128ba1f966be1d3ccd81d0d1959c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width