Title: Prevent shell injection by moreal · Pull Request #7310 · RustPython/RustPython · GitHub
Open Graph Title: Prevent shell injection by moreal · Pull Request #7310 · RustPython/RustPython
X Title: Prevent shell injection by moreal · Pull Request #7310 · RustPython/RustPython
Description: Since github.event.pull_request.head.ref can be defined by anyone, it can be used in shell injection. This pull request ensures those values aren't executed as shell scripts by setting them as env variables and using parameter expansion syntax to retrieve them. Related resources https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html Summary by CodeRabbit Chores Refactored GitHub Actions workflows to use environment variables for improved configuration management and reliability across release, documentation, and commit automation processes.
Open Graph Description: Since github.event.pull_request.head.ref can be defined by anyone, it can be used in shell injection. This pull request ensures those values aren't executed as shell scripts by setting them as ...
X Description: Since github.event.pull_request.head.ref can be defined by anyone, it can be used in shell injection. This pull request ensures those values aren't executed as shell scripts by setting them...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7310
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c514b7bd-a018-0e4d-4306-3696799e724f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B674:35F5B8:4985A68:613C8C2:6A5D8F0C |
| html-safe-nonce | 381eb7555d3883f0f4b009a9a68824aa1b35997051201a8dc46053f502bc9800 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjc0OjM1RjVCODo0OTg1QTY4OjYxM0M4QzI6NkE1RDhGMEMiLCJ2aXNpdG9yX2lkIjoiMzUyNzk2MDA5ODA1NTc1MzQ4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0baaf72ac511dee1a53b49da604c23cab7b38de4aff0618aab6ef83f4defa1d2 |
| hovercard-subject-tag | pull_request:3342781194 |
| 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/RustPython/RustPython/pull/7310/files |
| twitter:image | https://avatars.githubusercontent.com/u/26626194?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/26626194?s=400&v=4 |
| og:image:alt | Since github.event.pull_request.head.ref can be defined by anyone, it can be used in shell injection. This pull request ensures those values aren't executed as shell scripts by setting them as ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width