Commit 8c178a6
committed
verify-action-build: match TS generics on @actions/http-client *Json calls
Commit 920d616 added postJson/getJson/etc. as data-parse markers but the
regex required `(` directly after `Json`. The real call site in
rubygems/configure-rubygems-credentials v2.0.0 is `http.postJson<IdToken>(...)`
— the TypeScript generic between `Json` and `(` defeated the match, so PR
#795 still showed both src/oidc/assumeRole.ts and trustedPublisher.ts as
unverified downloads.
Allow an optional `<...>` between `Json` and `(`, and tighten the
RUBYGEMS_OIDC_EXCHANGE fixture so it mirrors the v2.0.0 source verbatim
(including the generic and IdTokenSchema.parse on the result). The fixture
omitting the generic was the crack the original fix slipped through.1 parent 2b3ae66 commit 8c178a6
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
| 867 | + | |
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
871 | 873 | | |
872 | 874 | | |
873 | 875 | | |
| |||
877 | 879 | | |
878 | 880 | | |
879 | 881 | | |
880 | | - | |
881 | | - | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
882 | 888 | | |
883 | 889 | | |
884 | 890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | | - | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1084 | 1087 | | |
1085 | 1088 | | |
1086 | 1089 | | |
| |||
0 commit comments