Skip to content

Skip Tuist auth on fork PRs#249

Merged
khoi merged 1 commit intomainfrom
khoi/memory
Apr 15, 2026
Merged

Skip Tuist auth on fork PRs#249
khoi merged 1 commit intomainfrom
khoi/memory

Conversation

@khoi
Copy link
Copy Markdown
Contributor

@khoi khoi commented Apr 15, 2026

Summary

  • skip tuist auth login when CI runs for fork-originated pull_request events
  • keep Tuist OIDC authentication enabled for pushes and same-repo pull requests

Why

Fork PR workflows do not receive GitHub OIDC request variables, so the shared
macOS setup action fails before the actual job starts. This keeps the shared
setup working in trusted contexts and avoids breaking fork PR validation.

Validation

  • make check
  • make build-app

Summary:
- skip `tuist auth login` for fork-originated `pull_request` runs
- keep Tuist OIDC authentication enabled for pushes and same-repo PRs

Rationale:
- fork PR workflows do not get `id-token: write`, so the shared setup
  action cannot request a GitHub OIDC token there
- skipping the auth step in that context avoids failing CI before the
  actual job work starts

Tests:
- `make check`
- `make build-app`
@khoi khoi merged commit 302de23 into main Apr 15, 2026
2 checks passed
@khoi khoi deleted the khoi/memory branch April 15, 2026 16:13
@tuist
Copy link
Copy Markdown

tuist Bot commented Apr 15, 2026

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
supacode 0 % 724 0 724 6842706bc

Builds 🔨

Scheme Status Duration Commit
supacode 1m 2s 6842706bc

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.

1 participant