Title: Add query to detect use of actions libs by robertbrignull · Pull Request #151 · github/codeql-action · GitHub
Open Graph Title: Add query to detect use of actions libs by robertbrignull · Pull Request #151 · github/codeql-action
X Title: Add query to detect use of actions libs by robertbrignull · Pull Request #151 · github/codeql-action
Description: Since some of the code now needs to run flawlessly outside of actions, I think a CodeQL query will be really helpful for spotting accidental uses. This borrows a lot of the framework from undeclared-action-input.ql but adds in checks for guards that we are running in actions/cli mode. This finds a few cases, which I've fixed in this PR. I've pushed a branch without the fixes too so you can see what the alerts were at https://github.com/github/codeql-action/security/code-scanning?query=ref:refs/heads/action_libs_query_alerts Merge / deployment checklist Confirm this change is backwards compatible with existing workflows. Confirm the readme has been updated if necessary.
Open Graph Description: Since some of the code now needs to run flawlessly outside of actions, I think a CodeQL query will be really helpful for spotting accidental uses. This borrows a lot of the framework from undeclare...
X Description: Since some of the code now needs to run flawlessly outside of actions, I think a CodeQL query will be really helpful for spotting accidental uses. This borrows a lot of the framework from undeclare...
Opengraph URL: https://github.com/github/codeql-action/pull/151
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:280aed06-4f24-674e-70d8-12743036f973 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D0A4:35F2C2:556F4:7437D:6A551520 |
| html-safe-nonce | 801d7309876159c3125d8227b9f5ea7ec91ec46c329c3efe27651714b364ea10 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEE0OjM1RjJDMjo1NTZGNDo3NDM3RDo2QTU1MTUyMCIsInZpc2l0b3JfaWQiOiIyMTE4MjY5MzQ2NjYxMDc4MzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 075b6225e8d71ca156f820d9dc712e3d66a4e99230797fe07ebb2743e7d4ef28 |
| hovercard-subject-tag | pull_request:468778930 |
| 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/151/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 | Since some of the code now needs to run flawlessly outside of actions, I think a CodeQL query will be really helpful for spotting accidental uses. This borrows a lot of the framework from undeclare... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width