actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.64k stars 892 forks source link

Pass runner version as environment variable in workflow #3318

Closed joshmgross closed 2 weeks ago

joshmgross commented 3 weeks ago

It's recommended to pass expressions into actions/github-script via env - this avoids issues with special characters or other syntax that could be interpreted as JavaScript.

https://github.com/actions/github-script#use-env-as-input

This also serves to avoid any potential script injections - https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable