fix: replace GitHub App token with GITEA_TOKEN in workflows (PRI-1533) (#190)

This commit is contained in:
2026-05-14 18:42:13 +00:00
parent 4a3c3d790e
commit c73ab6079b
4 changed files with 132 additions and 170 deletions
+4 -15
View File
@@ -12,22 +12,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@v3
continue-on-error: true
with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
owner: privilegedescalation
- name: Run CI/CD health check
env:
GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
if [ "${{ steps.app-token.outcome }}" = "success" ]; then
echo "Using GitHub App token for cross-repo access"
else
echo "::warning::RELEASE_APP_ID not configured — using GITHUB_TOKEN. Cross-repo workflow run data will be unavailable. Configure RELEASE_APP_ID org secret to enable full health check."
if [ -z "$GITEA_TOKEN" ]; then
echo "::warning::GITEA_TOKEN not configured — health check may have limited data."
fi
./.github/scripts/ci-health-check.sh
./.github/scripts/ci-health-check.sh