ci(forgejo): fix gitleaks artifact upload + use forgejo/upload-artifact
Some checks failed
CI / Dockerfile Package Check (push) Successful in 33s
CI / OpenSpec Validate (push) Successful in 3m31s
CI / Security Scan (push) Successful in 3m42s
CI / Typecheck (push) Successful in 4m59s
CI / Unit Tests (push) Failing after 4m35s
CI / Build (push) Successful in 4m22s
CI / Visual Tests (push) Failing after 1m48s
CI / E2E Tests (push) Failing after 4m15s
CI / Journal Image Smoke Test (push) Failing after 6m23s
CI / Lint (push) Successful in 21m38s

- gitleaks: GITLEAKS_ENABLE_UPLOAD_ARTIFACT=false (its @actions/artifact v2
  upload throws GHESNotSupportedError on Forgejo; the scan itself passes).
- swap actions/upload-artifact@v7 -> forgejo/upload-artifact@v4 (v4+ artifact
  API is unsupported on non-github.com servers).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-07-22 16:44:05 +02:00
parent 7e6d4cbcb2
commit 3df81af0b5
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -34,6 +34,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
# The action's SARIF artifact upload uses @actions/artifact v2, which
# throws GHESNotSupportedError against Forgejo. The scan itself works;
# disable the upload so a clean scan doesn't fail the job.
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false"
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
@ -180,7 +184,7 @@ jobs:
- name: Upload screenshots on failure
if: failure()
uses: actions/upload-artifact@v7
uses: forgejo/upload-artifact@v4
with:
name: visual-snapshots-diff
path: apps/planner/.vitest-attachments/