snippets
snippets copied to clipboard
Build fails for PRs opened from forks
https://github.com/android/snippets/blob/87948ac8ef0173a1562ed43d58801d76e8387f99/.github/workflows/build.yml#L31-L34
The checkout build step uses a secret PAT, which forks don't have access to, so the build step immediately fails for any PRs opened from a fork.
Example PR: https://github.com/android/snippets/pull/178
I made changes to fix the PAT-specific issue here. Builds are still failing though in the following workflow file: https://github.com/android/snippets/blob/main/.github/workflows/apply_spotless.yml. See: https://github.com/android/snippets/actions/runs/7806615803