
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Create pull requests programmatically using the GitHub API.
Created as a local alternative to:
Either clone this repository and run python setup.py develop
or just use pip install githubpullrequests
$ githubpullrequests -h
usage: githubpullrequests [-h] [-f FILE] [-t TOKEN] [-mr MAXIMUM_REPOSITORIES]
[-c] [-d] [-s] [-ei ENABLE_ISSUES] [-as ADD_STARS]
[-wa WATCH_ALL]
Create Pull Requests, using GitHub API and a list of repositories.
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE The file with the repositories informations
-t TOKEN, --token TOKEN
GitHub token with `public_repos` access, or the path
to a file with the Github token in plain text. The
only contents the file can have is the token,
optionally with a trailing new line.
-mr MAXIMUM_REPOSITORIES, --maximum-repositories MAXIMUM_REPOSITORIES
The maximum count of repositories/requests to process
per file.
-c, --cancel-operation
If there is some batch operation running, cancel it as
soons as possible.
-d, --dry-run Do a rehearsal of a performance or procedure instead
of the real one i.e., do not create any pull requests,
but simulates/pretends to do so.
-s, --synced-repositories
Reports which repositories not Synchronized with Pull
Requests. This also resets/skips any last session
saved due old throw/raised exceptions, because to
compute correctly the repositories list, it is
required to know all available repositories.
-ei ENABLE_ISSUES, --enable-issues ENABLE_ISSUES
Enable the issue tracker on all repositories for the
given user.
-as ADD_STARS, --add-stars ADD_STARS
Add a star on all repositories for the given user.
-wa WATCH_ALL, --watch-all WATCH_ALL
Enable watch for all repositories on the given user.
For example:
$ githubpullrequests -f repositories_list.txt
Example of repositories_list.txt
:
[Anything Unique like evandrocoan/SublimePackageDefault]
url = https://github.com/evandrocoan/SublimePackageDefault
upstream = https://github.com/evandroforks/SublimePackageDefault
branches = upstream_branch_name->fork_branch_name,
You need to define the environment variable GITHUBPULLREQUESTS_TOKEN
with the GitHub access token with public_repos
permission,
or pass the command line argument -t token
to githubpullrequests
.
See the file LICENSE.txt
FAQs
Create Pull Requests, using GitHub API and a list of repositories
We found that githubpullrequests 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.