From ac7c082b2f8249135b3be6cc6136c1fb1965bd1b Mon Sep 17 00:00:00 2001 From: Josh Johanning Date: Fri, 22 Aug 2025 20:46:35 -0500 Subject: [PATCH] fix: add a small sleep to avoid rate limiting --- gh-cli/get-actions-usage-in-organization.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gh-cli/get-actions-usage-in-organization.sh b/gh-cli/get-actions-usage-in-organization.sh index cdf2288..5f21799 100755 --- a/gh-cli/get-actions-usage-in-organization.sh +++ b/gh-cli/get-actions-usage-in-organization.sh @@ -157,6 +157,9 @@ actions="" repos_without_dependency_graph=() for repo in $repos; do + # Add a small delay to avoid rate limiting + sleep 1 + # Try to get SBOM data - if it fails, dependency graph is likely disabled sbom_data=$(gh api repos/$repo/dependency-graph/sbom --jq '.sbom.packages[].externalRefs.[0].referenceLocator' 2>&1)