
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
helper-auth
Advanced tools
This Python library provides the HelperAuth class whose objects are intended
to be used as custom authentication handlers in conjunction with
the Requests library, as suggested in its documentation.
pip install helper-auth
Suppose you have an existing GitHub personal access token, and a Git credential helper already set up for Git to authenticate to GitHub using this token as the password. This helper prints the following to standard output:
$ git credential-github
username=YOUR_GITHUB_USERNAME
password=YOUR_GITHUB_TOKEN
You want to use the same token to make GitHub API calls using the Requests
library. The API expects the field Authorization: Bearer YOUR_GITHUB_TOKEN in
your request's headers.
You can use HelperAuth with its default settings:
import requests
from helper_auth import HelperAuth
auth = HelperAuth("git credential-github")
response = requests.get("https://api.github.com/user", auth=auth)
The helper command can be specified as one or more positional arguments:
auth = HelperAuth("helper")
auth = HelperAuth("helper", "--option", "arg")
As a shortcut, a command with command-line arguments can also be passed as single string (this form is used in the code snippet above):
auth = HelperAuth("helper --option arg")
In addition, the first positional argument can be a path-like object:
auth = HelperAuth(Path("helper"))
auth = HelperAuth(Path("helper"), "--option", "arg")
By default, a HelperAuth object never stores the value of the token
in its internal state. Rather, the helper command is invoked
each time the auth object is called. This is an intentional precaution (such
that the token cannot be retrieved ex post by the introspection of the
auth object) but it can also be unnecessarily expensive in situations
where such precaution is not necessary and the auth object is to
be called repeatedly, e.g. when making many simultaneous API calls.
You can override this behavior by passing cache_token=True to the
constructor:
auth = HelperAuth("helper", cache_token=True)
The cached token can then be cleared anytime by calling
auth.clear_cache()
FAQs
Request authentication using existing credential helpers.
We found that helper-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.