Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip CircleCI Upload step on PRs coming from forks #773

Merged
merged 1 commit into from
May 24, 2020

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented May 20, 2020

Internal PR: Following the CircleCI v2.0 documentation our check for skipping external contributions from uploading to our binary bucket doesn't work any longer.

We should instead use:

Variable Type Value
CIRCLE_PR_USERNAME String The GitHub or Bitbucket username of the user who created the pull request. Only available on forked PRs.

I verified that ${CIRCLE_PR_USERNAME} was indeed set to fhriley on #772 whereas it is empty in this build (you can see in the CircleCI run that the binary was uploaded).

Signed-off-by: DL6ER <dl6er@dl6er.de>
@DL6ER DL6ER added the Bugfix label May 20, 2020
@DL6ER DL6ER added this to the v5.1 milestone May 20, 2020
@DL6ER DL6ER requested a review from dschaper May 20, 2020 08:33
@DL6ER DL6ER merged commit 3e258bb into development May 24, 2020
@DL6ER DL6ER deleted the fix/circleci_prevent_foreign_uploads branch May 24, 2020 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants