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

add X-Tokenless header when uploading from fork #334

Closed
wants to merge 8 commits into from

Conversation

giovanni-guidini
Copy link
Contributor

Public forks will accept tokenless uploads.
Currently we were just sending an empty header (no Authorization).
These changes add a header X-Tokenless: fork_slug so we know
easily that the request is from a fork, and which fork it's from.

I also have a tendency to compulsively add typehints to complex
types.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

zetaab and others added 8 commits November 3, 2023 10:26
* heads/main:
  simplify the ternary operator
  amend branch names to be forked-slug:branch-name
  we need the pr number for the PR API request to know if the command runs in a fork PR
  chore: Fix helper text in label analysis (#315)
  taking decoding slug out of is_fork_pr, cause it doesn't feel right to be there
  adding tests
  check if the PR is a fork PR
  chore: remove smart-open (#326)
@giovanni-guidini
Copy link
Contributor Author

Ops messed up the branches. Sorry 😅

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.

3 participants