File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -683,17 +683,17 @@ def _canonical_actions_run_violations(
683683 findings : list [tuple [int , str ]] = []
684684 normalized = unicodedata .normalize ("NFKC" , body )
685685 direct = normalized
686- markdown_unescaped = re .sub (r"\\([/\\.:?&=%#])" , r"\1" , normalized )
687- browser_normalized = re .sub (
688- r"(?i)(https?://[^\s<>)\]]*)\\([^\s<>)\]]*)" ,
689- lambda match : match .group (0 ).replace ("\\ " , "/" ),
690- markdown_unescaped ,
691- )
692686 for _ in range (3 ):
693687 decoded = html .unescape (direct )
694688 if decoded == direct :
695689 break
696690 direct = decoded
691+ markdown_unescaped = re .sub (r"\\([/\\.:?&=%#])" , r"\1" , direct )
692+ browser_normalized = re .sub (
693+ r"(?i)(https?://[^\s<>)\]]*)\\([^\s<>)\]]*)" ,
694+ lambda match : match .group (0 ).replace ("\\ " , "/" ),
695+ markdown_unescaped ,
696+ )
697697
698698 path_matches = list (_ACTIONS_PATH .finditer (direct ))
699699 canonical_matches = list (_CANONICAL_ACTIONS_URL .finditer (direct ))
Original file line number Diff line number Diff line change @@ -713,6 +713,7 @@ def test_release_evidence_rejects_obsolete_workflow_reference_marker(
713713 "https://github.com/cometapi-dev/cometapi-python/actions/runs/30511373822" ,
714714 "https://github.com/cometapi-dev/cometapi-python/actions\\ /runs\\ /30511373822" ,
715715 "https://github.com/cometapi-dev/cometapi-python/actions\\ runs\\ 30511373822" ,
716+ "https://github.com/cometapi-dev/cometapi-python\actions\runs\30511373822" ,
716717 "https://github.com/cometapi-dev/cometapi-python/actions/runs/30511373822.evil" ,
717718 "https://github.com/cometapi-dev/cometapi-python/actions/runs/30511373822/attempts/0" ,
718719 ],
You can’t perform that action at this time.
0 commit comments