Skip to content

Conversation

@yichuan-w
Copy link
Owner

@yichuan-w yichuan-w commented Dec 24, 2025

Changes

This PR adds the following configurations to all checkout actions in GitHub Actions workflows:

  • fetch-depth: 1: Only fetch the latest commit to speed up checkout
  • token: ${{ secrets.GH_PAT }}: Use Personal Access Token for authentication, enabling access to private submodules

Modified Files

  • .github/workflows/build-reusable.yml (2 locations)
  • .github/workflows/link-check.yml (1 location)
  • .github/workflows/release-manual.yml (2 locations)

Important Notes

⚠️ Make sure to configure the GH_PAT secret in GitHub repository Settings → Secrets and variables → Actions before merging.

Related Notes

This step is critical to ensure workflows can properly access private submodules and improve checkout performance.

- Add fetch-depth: 1 to all checkout actions for faster checkout
- Add token: ${{ secrets.GH_PAT }} to all checkout actions
- This enables access to private submodules and improves checkout performance
@yichuan-w yichuan-w requested a review from andylizf December 24, 2025 04:16
- Use GH_PAT if available, otherwise fallback to GITHUB_TOKEN
- This prevents 'token not supplied' errors when GH_PAT is not configured
- Use conditional expression to check if GH_PAT exists before using it
- Fallback to GITHUB_TOKEN if GH_PAT is not set or empty
- This fixes the 'token not supplied' error
@andylizf andylizf closed this Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants