Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

CI's guard falls back to gitleaks' ghcr.io image when GitHub's release host keeps answering 504: on 11-08 every retry of the download failed for #39's and #45's landings (4219d620f, 0ef223922), before anything was scanned

shinyobjectz5c7540f91c8e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 36415853..41943c00 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -32,8 +32,13 @@ jobs:
with:
fetch-depth: 0
- name: gitleaks
+ # GitHub's release host answered 504 for minutes at a time on 11-08, through every retry; the same version's
+ # container image on ghcr.io is the fallback
run: |
- curl -fsSL --retry 5 --retry-all-errors https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz | tar -xz -C /usr/local/bin gitleaks
+ v=8.30.1
+ curl -fsSL --retry 3 --retry-all-errors https://github.com/gitleaks/gitleaks/releases/download/v$v/gitleaks_${v}_linux_x64.tar.gz | tar -xz -C /usr/local/bin gitleaks \
+ || { c=$(docker create ghcr.io/gitleaks/gitleaks:v$v) && sudo docker cp "$c:/usr/bin/gitleaks" /usr/local/bin/gitleaks && docker rm "$c"; }
+ gitleaks version
- name: public-guard
run: |
base=${{ github.event.pull_request.base.sha || github.event.before }}