GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ci): store-build checkouts drop credentials without submodule cle… · AndryHTC/t3code@f728112

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • mobile-eas-production.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/mobile-eas-production.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/mobile-eas-production.yml
+30-4Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,21 @@ jobs:
504504
with:
505505
ref: ${{ needs.production.outputs.android_sha }}
506506
fetch-depth: 0
507-
# Dependency scripts and the build run in this job; only Record build gets a token.
508-
persist-credentials: false
507+
508+
# Dependency scripts and the build run in this job; only Record build gets a token.
509+
# persist-credentials: false would clean up via `git submodule foreach`, which fails on .repos gitlinks.
510+
- name: Drop checkout credentials
511+
run: |
512+
git config --local --unset-all http.https://github.com/.extraheader || true
513+
{ git config --local --name-only --get-regexp '^includeif\.' || true; } | while read -r key; do
514+
path=$(git config --local --get "$key")
515+
git config --local --unset-all "$key"
516+
case "$path" in "$RUNNER_TEMP"/*) rm -f "$path" ;; esac
517+
done
518+
if git config --local --get-regexp '^(http\..*\.extraheader|includeif\.)'; then
519+
echo "::error::Checkout credentials are still configured"
520+
exit 1
521+
fi
509522
510523
# A queued run can follow a build of the same fingerprint; manual runs always build.
511524
- id: record
@@ -687,8 +700,21 @@ jobs:
687700
with:
688701
ref: ${{ needs.production.outputs.ios_sha }}
689702
fetch-depth: 0
690-
# Dependency scripts and the build run in this job; only Record build gets a token.
691-
persist-credentials: false
703+
704+
# Dependency scripts and the build run in this job; only Record build gets a token.
705+
# persist-credentials: false would clean up via `git submodule foreach`, which fails on .repos gitlinks.
706+
- name: Drop checkout credentials
707+
run: |
708+
git config --local --unset-all http.https://github.com/.extraheader || true
709+
{ git config --local --name-only --get-regexp '^includeif\.' || true; } | while read -r key; do
710+
path=$(git config --local --get "$key")
711+
git config --local --unset-all "$key"
712+
case "$path" in "$RUNNER_TEMP"/*) rm -f "$path" ;; esac
713+
done
714+
if git config --local --get-regexp '^(http\..*\.extraheader|includeif\.)'; then
715+
echo "::error::Checkout credentials are still configured"
716+
exit 1
717+
fi
692718
693719
# A queued run can follow a build of the same fingerprint; manual runs always build.
694720
- id: record

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.