blob: 86f2ffb455a46d4b19d7e0dadae530c6b46ba5c6 [file]
#!/usr/bin/env bash
#
# Copyright 2026 The Fuchsia Authors
#
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.
set -euo pipefail
# Bound this check's wall-clock time: on first entry, re-execute under
# coreutils `timeout`, which at the limit sends SIGTERM to the process group
# and exits 124, then sends SIGKILL (exit status 137) 120 seconds later.
# Other exit statuses and signals pass through unchanged.
# Only static checks of `.github`; legacy `ci.yml` p99 was under 2 minutes.
TIMEOUT_SECS=1800
if [[ -z "${CI_SCRIPT_TIMEOUT_ACTIVE:-}" ]]; then
echo "$0: limit ${TIMEOUT_SECS}s; exit 124 or 137 means it timed out" >&2
export CI_SCRIPT_TIMEOUT_ACTIVE=1
exec /usr/bin/timeout --verbose --kill-after=120s "${TIMEOUT_SECS}s" \
"$BASH" "$0" "$@"
fi
unset CI_SCRIPT_TIMEOUT_ACTIVE
./ci/check_actions.sh
./ci/check_job_dependencies.sh
zizmor --offline --persona=pedantic --min-severity=medium .github