ci: configure Forgejo git credentials before pip install
Some checks failed
CI / test (push) Failing after 27s

FORGEJO_TOKEN secret injected via env var (not inline expression) to
avoid CI injection risk; git insteadOf redirect authenticates the
git+https:// circuitforge-core VCS URL at install time.
This commit is contained in:
pyr0ball 2026-04-01 13:43:54 -07:00
parent d31a31b263
commit 5266aa52e8

View file

@ -22,6 +22,12 @@ jobs:
python-version: "3.11" python-version: "3.11"
cache: pip cache: pip
- name: Configure git credentials for Forgejo
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
git config --global url."https://oauth2:${FORGEJO_TOKEN}@git.opensourcesolarpunk.com/".insteadOf "https://git.opensourcesolarpunk.com/"
- name: Install dependencies - name: Install dependencies
run: pip install -r requirements.txt run: pip install -r requirements.txt