diff --git a/.github/workflows/workflow-sanity.yml b/.github/workflows/workflow-sanity.yml index e1a16fe977e..d852d50cd8e 100644 --- a/.github/workflows/workflow-sanity.yml +++ b/.github/workflows/workflow-sanity.yml @@ -60,8 +60,11 @@ jobs: ACTIONLINT_VERSION="1.7.11" archive="actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz" base_url="https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}" - curl -sSfL -o "${archive}" "${base_url}/${archive}" - curl -sSfL -o checksums.txt "${base_url}/actionlint_${ACTIONLINT_VERSION}_checksums.txt" + # GitHub release downloads occasionally return transient 5xx responses. + # Retry all curl errors here so workflow-sanity does not fail closed on + # a one-off release edge outage. + curl --retry 5 --retry-delay 2 --retry-all-errors -sSfL -o "${archive}" "${base_url}/${archive}" + curl --retry 5 --retry-delay 2 --retry-all-errors -sSfL -o checksums.txt "${base_url}/actionlint_${ACTIONLINT_VERSION}_checksums.txt" grep " ${archive}\$" checksums.txt | sha256sum -c - tar -xzf "${archive}" actionlint sudo install -m 0755 actionlint /usr/local/bin/actionlint