snippets icon indicating copy to clipboard operation
snippets copied to clipboard

Build fails for PRs opened from forks

Open alexvanyo opened this issue 1 year ago • 1 comments

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

alexvanyo avatar Jan 03 '24 20:01 alexvanyo

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

arriolac avatar Feb 06 '24 21:02 arriolac