ci: add PAT token authentication for Forgejo in CI pipeline
ci / test (push) Successful in 50s

- Configure git with oauth2 authentication using REGISTRY_PAT token
- Enables private module access and authenticated requests
- Integration tests now run in CI with proper authentication
- Graceful test fallback: tests run if Temporal accessible, skip if not
- Update TEMPORAL_USAGE.md documentation accordingly
This commit is contained in:
Test
2026-08-23 16:28:02 -07:00
parent 02a623712e
commit e3a5e571bf
2 changed files with 40 additions and 23 deletions
+6
View File
@@ -15,6 +15,12 @@ jobs:
GOFLAGS: -mod=readonly
GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }}
steps:
- name: Configure git authentication
run: |
git config --global url."https://oauth2:${{ secrets.REGISTRY_PAT }}@forgejo.riotpiao.com".insteadOf "https://forgejo.riotpiao.com"
git config --global credential.helper store
echo "https://oauth2:${{ secrets.REGISTRY_PAT }}@forgejo.riotpiao.com" >> ~/.git-credentials
- name: Checkout code
run: |
git init