Skip to content

Commit a3bd764

Browse files
committed
fix(ci): normalize static analysis owner resolution
1 parent 25d8fcf commit a3bd764

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/static-analysis-gate.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
permissions:
1313
contents: read
1414

15+
env:
16+
REPO_OWNER: ${{ github.repository_owner }}
17+
1518
jobs:
1619
# ---------------------------------------------------------------------------
1720
# Job 1: panic-attack assail
@@ -30,7 +33,7 @@ jobs:
3033
id: install
3134
run: |
3235
# Try to fetch the latest release binary from the org
33-
PA_URL="https://github.com/hyperpolymath/panic-attack/releases/latest/download/panic-attack-linux-x86_64"
36+
PA_URL="https://github.com/${REPO_OWNER}/panic-attack/releases/latest/download/panic-attack-linux-x86_64"
3437
if curl -fsSL --head "$PA_URL" >/dev/null 2>&1; then
3538
curl -fsSL -o /usr/local/bin/panic-attack "$PA_URL"
3639
chmod +x /usr/local/bin/panic-attack
@@ -142,7 +145,7 @@ jobs:
142145
id: build
143146
continue-on-error: true
144147
run: |
145-
git clone https://github.com/hyperpolymath/hypatia.git "$HOME/hypatia" 2>/dev/null || true
148+
git clone "https://github.com/${REPO_OWNER}/hypatia.git" "$HOME/hypatia" 2>/dev/null || true
146149
if [ -f "$HOME/hypatia/mix.exs" ]; then
147150
cd "$HOME/hypatia"
148151
if [ ! -f hypatia-v2 ]; then

0 commit comments

Comments
 (0)