Build fails for PRs opened from forks

Open
#179 3 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@mlykotom is already working on this.

Since Jan 3, 2024.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
Kotlin
Stars
1.2k
Forks
448
Avg merge
4d 22h
Merged PRs (30d)
42

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/snippets

All issues in android/snippets

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.