@@ -6316,29 +6316,46 @@ server.listen(0, "127.0.0.1", () => {
63166316 expect ( run ) . not . toContain ( "git fetch" ) ;
63176317 } ) ;
63186318
6319- it ( "bounds the workflow sanity tool downloads " , ( ) => {
6319+ it ( "bounds the workflow sanity ShellCheck download " , ( ) => {
63206320 const workflow = readWorkflowSanityWorkflow ( ) ;
63216321 const shellcheckStep = expectDefined (
63226322 workflow . jobs . actionlint . steps . find (
63236323 ( step : WorkflowStep ) => step . name === "Install ShellCheck" ,
63246324 ) ,
63256325 "ShellCheck install step" ,
63266326 ) ;
6327- const actionlintStep = expectDefined (
6328- workflow . jobs . actionlint . steps . find (
6329- ( step : WorkflowStep ) => step . name === "Install actionlint" ,
6330- ) ,
6331- "actionlint install step" ,
6332- ) ;
6333-
63346327 expect ( shellcheckStep . run ) . toContain ( "curl --connect-timeout 10 --max-time 120" ) ;
63356328 expect ( shellcheckStep . run ) . toContain ( "--retry 5 --retry-delay 2 --retry-all-errors" ) ;
6336- expect ( actionlintStep . run ) . toContain ( "--connect-timeout 10" ) ;
6337- expect ( actionlintStep . run ) . toContain ( "--max-time 120" ) ;
6338- expect ( actionlintStep . run ) . toContain ( "--retry 5" ) ;
6339- expect ( actionlintStep . run ) . toContain ( "--retry-delay 2" ) ;
6340- expect ( actionlintStep . run ) . toContain ( "--retry-all-errors" ) ;
6341- expect ( actionlintStep . run . match ( / c u r l " \$ \{ c u r l _ a r g s \[ @ \] \} " / gu) ) . toHaveLength ( 2 ) ;
6329+ } ) ;
6330+
6331+ it ( "pins workflow and pre-commit actionlint to the large-stdin deadlock fix" , ( ) => {
6332+ const revision = "011a6d15e749bb3f2d771eed9c7aa0e7e3e10ee7" ;
6333+ const steps : WorkflowStep [ ] = readWorkflowSanityWorkflow ( ) . jobs . actionlint . steps ;
6334+ const setupGo = expectDefined (
6335+ steps . find ( ( step ) => step . uses === SETUP_GO_V6 ) ,
6336+ "Go setup" ,
6337+ ) ;
6338+ const install = expectDefined (
6339+ steps . find ( ( step ) => step . name === "Install actionlint" ) ,
6340+ "actionlint install" ,
6341+ ) ;
6342+
6343+ expect ( setupGo . with ) . toEqual ( { "go-version" : "1.25.0" , cache : false } ) ;
6344+ expect ( steps . indexOf ( setupGo ) ) . toBeLessThan ( steps . indexOf ( install ) ) ;
6345+ expect ( install . run ) . toContain ( `ACTIONLINT_REVISION="${ revision } "` ) ;
6346+ expect ( install . run ) . toContain ( 'export GOBIN="$RUNNER_TEMP/actionlint-bin"' ) ;
6347+ expect ( install . run ) . toContain (
6348+ 'go install "github.com/rhysd/actionlint/cmd/actionlint@${ACTIONLINT_REVISION}"' ,
6349+ ) ;
6350+ expect ( install . run ) . toContain ( '"$GOBIN/actionlint" -version' ) ;
6351+ expect ( install . run ) . toContain ( "v1.7.13-0.20260419144658-${ACTIONLINT_REVISION:0:12}" ) ;
6352+ expect ( install . run ) . toContain ( 'echo "$GOBIN" >> "$GITHUB_PATH"' ) ;
6353+ const preCommit = parse ( readFileSync ( ".pre-commit-config.yaml" , "utf8" ) ) ;
6354+ expect (
6355+ preCommit . repos . find (
6356+ ( repo : { repo : string } ) => repo . repo === "https://github.com/rhysd/actionlint" ,
6357+ ) . rev ,
6358+ ) . toBe ( revision ) ;
63426359 } ) ;
63436360
63446361 it ( "runs committed generated baseline drift checks in workflow sanity" , ( ) => {
0 commit comments