Repository navigation
fix(github): keep a quote mark that the mask did not open - #3691
Conversation
Plans #2569. The change folder holds the proposal, the design, the spec delta and the tasks.
A credential rule took the quote mark after a value even when no quote mark opened the value. A secret in the query of a URL inside a JSON string lost the quote that closes the string, and devops gh api printed text that is not JSON. The rules for token, password, client_secret and aws_secret_access_key now take a closing quote mark only after a quote mark of the same kind.
The value of the token and password rules held the backslash of a JSON escape. A secret before an escaped quote mark lost the backslash, and the quote mark then ended the string early. The value now ends before a backslash that starts an escaped quote mark, and a double backslash stays whole. The tests of the first fix now fake gh at the process edge and cover the escaped quote mark. The text of the change folder uses sentences of at most 25 words.
Test resultsfail-to-pass ( Narrow runs on the rebased head: Full Review findings fixed
Outside this item
|
🤖 I have created a release *beep* *boop* --- ## [0.63.2](v0.63.1...v0.63.2) (2026-11-05) ### Bug Fixes * **github:** keep a quote mark that the mask did not open ([#3691](#3691)) ([ed91c67](ed91c67)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
devops gh apiprinted a JSON reply that no parser could read. The masks fortoken,password,client_secretandaws_secret_access_keytook the quote mark that closes a JSON string, together with a secret in a URL query.A rule now takes a closing quote mark only after a quote mark of the same kind. The value of the
tokenandpasswordrules also ends before an escaped quote mark, and a double backslash stays whole. So the mask never leaves a quote mark with no escape.A value in a pair of quote marks is still masked with the pair. A value with an opening quote mark and no closing one is still masked.
Closes #2569
Change:
openspec/changes/archive/2026-11-05-2569-mask-keeps-json-quote/Elapsed: 8.21s