Title: Private Github Plugin with Authentication Token
Last modified: December 4, 2023

---

# Private Github Plugin with Authentication Token

 *  Resolved [knaptonwright](https://wordpress.org/support/users/knaptonwright/)
 * (@knaptonwright)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/private-github-plugin-with-authentication-token/)
 * I’ve got a plugin which I’m developing. I’ve got the source code on a Github 
   Repo and I’m checking for releases. This repo is private which is fine for checking
   for an update because I can set the Authentication code in the header using CURL
   but I don’t know how to set the Authentication code in the header for the update
   button:
 * > [Private Github Plugin with Authentication Token](https://imgur.com/a/aTDiJd8)
 * I know Github was previously authenticated using URL parameters but they’re no
   longer supported so I need to set it within the HTTP Header.
 * I’ve tracked the update button to the [plugins_api filter](https://developer.wordpress.org/reference/functions/plugins_api/).
   Is there another filter I need to add where I can set the Authentication token
   or is this not possible?
 * If not how do I make it known that the new version needs downloading and installing
   manually?
 * Please let me know if you need any more information. Thank you in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/private-github-plugin-with-authentication-token/#post-17251888)
 * See if the following sources point in the right direction:
    [Plugin Handbook](https://developer.wordpress.org/plugins/)
   [https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/](https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/)
 *  Thread Starter [knaptonwright](https://wordpress.org/support/users/knaptonwright/)
 * (@knaptonwright)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/private-github-plugin-with-authentication-token/#post-17253412)
 * I’ve managed to locate a hook that adds the Headers to the update url. It’s worked
   like a charm.
 * [https://stackoverflow.com/a/72849794](https://stackoverflow.com/a/72849794)
 * The hook I found was:
 *     ```wp-block-code
       add_filter( "http_request_args", array( $this, "addHeaders") , 10, 3);
       ```
   
 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/private-github-plugin-with-authentication-token/#post-17254687)
 * Glad you got it sorted 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Private Github Plugin with Authentication Token’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/private-github-plugin-with-authentication-token/#post-17254687)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
