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

Added GitHub signature checking feature + tests #77

Merged
merged 7 commits into from
Jun 19, 2015

Conversation

Moliholy
Copy link

@Moliholy Moliholy commented Apr 1, 2015

Upon receiving a signed POST, i.e. containing a X-Hub-Signature header, that header was just ignored. Now it checks if the signature is correct, and in case it is, then it processes the POST normally.

@Moliholy
Copy link
Author

Moliholy commented Apr 1, 2015

Hmmm it's weird. In my machine all the tests pass without any problem

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@@ -46,6 +46,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't pass the integration tests without this change

christ66 pushed a commit to christ66/ghprb-plugin that referenced this pull request May 18, 2015
Using the default `refspec` prohibits the project from automatically building non-PR branches like `origin/master`. Prepending the `refspec` with the heads and remote/origin allows the project to build pull requests as well as other branches like `origin/my-feature`. This should resolve jenkinsci#77.

Big thanks to janinko#77 (comment) 😄
@DavidTanner
Copy link
Contributor

Please merge in latest master.

Jose Molina added 2 commits May 20, 2015 09:31
…to github_signature

Conflicts:
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbRootAction.java
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbTrigger.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbPullRequestMergeTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRepositoryTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRootActionTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbTestUtil.java
@Moliholy
Copy link
Author

Merged!

…to github_signature

Conflicts:
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbRepository.java
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbTrigger.java
	src/main/resources/org/jenkinsci/plugins/ghprb/GhprbTrigger/config.jelly
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRepositoryTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbTestUtil.java
@Moliholy
Copy link
Author

Moliholy commented Jun 8, 2015

Updated to the latest master.
How is this pull request's revision going? Is there something more I should do?

@DavidTanner
Copy link
Contributor

I updated master to use multiple GitHub configurations. Please update to master and make sure everything works appropriately.

@KostyaSha
Copy link
Member

You will need additional property in credentials.

…to github_signature

Conflicts:
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbRootAction.java
	src/main/java/org/jenkinsci/plugins/ghprb/GhprbTrigger.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbRootActionTest.java
	src/test/java/org/jenkinsci/plugins/ghprb/GhprbTestUtil.java
@Moliholy
Copy link
Author

Merged and tests passed

@DavidTanner DavidTanner merged commit c3b851b into jenkinsci:master Jun 19, 2015
nosmo pushed a commit to nosmo/ghprb-plugin that referenced this pull request Dec 12, 2018
Using the default `refspec` prohibits the project from automatically building non-PR branches like `origin/master`. Prepending the `refspec` with the heads and remote/origin allows the project to build pull requests as well as other branches like `origin/my-feature`. This should resolve jenkinsci#77.

Big thanks to janinko#77 (comment) 😄
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.

4 participants