* Update telemetry (#1355)
* Track "pause-logging"
* Bump release version
* Don't retry 422 (#1352)
* Update the comment about the `--once` in Constants.cs (#1360)
* Update Constants.cs
* feedback.
* Update src/Runner.Listener/Runner.cs
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
* Fix unconfiguring of runner after group changes (#1359)
* Ignore agentpool when unconfiguring the runner
Runner names and IDs are unique within a ServiceHost
They don't need to be included when unconfiguring the runner.
* Use -1 instead of 0 to highlight how it is ignored
* Use overloads and 0 instead of -1
Using 0 seems to be the convention
* Fix typo calling the wrong method
* only cleanup runner local files on success (#1384)
* Stop-Commands: stopToken restrictions (#1371)
* Prevent stopTokens that are workflow commands
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
* Check context for env var too
* Accept true, 1 and $true instead of just "true"
* Setup ExpressionValues in tests
* Update src/Runner.Common/Constants.cs
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
* Separate success and fail tests for invalid token
* Fix envcontext for tests
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
* Handle keeping previous OSX versions more smoothly on Mac (#1381)
* Handle macOS upgrade smoothly
* cleanup
* misc cleanup
* final updates
* Update src/Misc/layoutbin/update.sh.template
Co-authored-by: Patrick Ellis <319655+pje@users.noreply.github.com>
* Update src/Misc/layoutbin/update.sh.template
Co-authored-by: Patrick Ellis <319655+pje@users.noreply.github.com>
* Upload telemetry and default to old method as needed
* minor fix
* add one more bit of logging
* some more telemetry
* quote variables to handle spaces
* tiny fix for ubuntu
* remove version and move telemetry to diag
* use full path
Co-authored-by: Patrick Ellis <319655+pje@users.noreply.github.com>
* Runner 2.283.2 Release (#1389)
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Patrick Ellis <319655+pje@users.noreply.github.com>
* Trim pwsh special chars when masking secrets
* Add pwsh valueEncoder
* Explain regex
* Update ValueEncoders.cs
* Add tests for pwsh color codes in secrets
* Formatting
* Group tests into theories
* Split secret on PS chars and mask for them
* Clean up comments
* Remove unused unittest
* Rename escape methods
* First pass at logic for GHES, not all correct
* Need to mock out file downloading
* Allowed for mocking of HTTP responses
* Added test for builtin GHES action download
* More tests
* Don't retry on action 404
* Remove commented out code
* Add a using statement back, because Windows
* Make windows happy again
* Another windows fix
* Always delete the cache since it isn't fully implemented
* Use RunnerService base class
* Add examples, update URL path
* Remove forceDotCom
* Fix a bug
* Remove a test that's no longer relevant
* PR feedback
* Add missing return
* More trace info
* Use the new agreed-upon format
* Use the auth token since we're hitting GHES directly
* Fixing tests on windows
* Fixed one more test