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
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:
parent
7e6d4cbcb2
commit
3df81af0b5
1 changed files with 5 additions and 1 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue