Skip to content

Commit 21012da

Browse files
fix: add a small sleep to avoid rate limiting (#113)
1 parent 5116d47 commit 21012da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gh-cli/get-actions-usage-in-organization.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ actions=""
157157
repos_without_dependency_graph=()
158158

159159
for repo in $repos; do
160+
# Add a small delay to avoid rate limiting
161+
sleep 1
162+
160163
# Try to get SBOM data - if it fails, dependency graph is likely disabled
161164
sbom_data=$(gh api repos/$repo/dependency-graph/sbom --jq '.sbom.packages[].externalRefs.[0].referenceLocator' 2>&1)
162165

0 commit comments

Comments
 (0)