Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
GitLab Executor
To use this tool, it is required to have a GitLab account somewhere. In the GitLab, a personal access token needs to be created. The respective page can be found under https://<gitlab.domain.com>/profile/personal_access_tokens
. Enter a name for your new access token and check the api
box. If only read-only access is desired, read_api
is sufficient. Keep the access token safe as it will only be displayed once.
In order to provide the access token and base url of the GitLab to gitlab-x
either use environment variables or pass them as command line options:
GITLAB_AT
can be used to provide the access token
GITLAB_URL
can be used to provide the base url of the GitLab
export GITLAB_AT=asdf1234
export GITLAB_URL=https://gitlab.com
If no environment varialbe is given for the access token or base url, they need to be provided as command line arguments:
-u
or --url
followed by the GitLab URL
-t
or --access-token
followed by the access token
$ npx gitlab-x -u gitlab.com -t asdf1234 version
Retrieves the version of the GitLab being queried
$ npx gitlab-x version [fields...]
$ npx gitlab-x version
{ version: '13.7.0-pre', revision: '59e06a7bf82' }
$ npx gitlab-x version revision
'59e06a7bf82'
$ npx gitlab-x version version
'13.7.0-pre'
$ npx gitlab-x version version --json
{ version: '13.7.0-pre' }
Queries API objects
$ npx gitlab-x get project <project_identifier> [fields...]
The project_identifier
can be either:
$ npx gitlab-x get project /mxcd/test
{
id: 23106572,
description: '',
name: 'test',
name_with_namespace: 'Max Partenfelder / test',
path: 'test',
path_with_namespace: 'mxcd/test',
created_at: '2020-12-14T23:26:00.959Z',
default_branch: null,
tag_list: [],
.....
$ npx gitlab-x get project 23106572 name web_url
{ name: 'test', web_url: 'https://gitlab.com/mxcd/test' }
$ npx gitlab-x get branches <project_identifier> [fields...]
$ npx gitlab-x get raw <project_identifier> <file_path> [--ref <branch>]
$ npx gitlab-x commit <local file> <project identifier> [<target file>] [--ref <branch>] [--force]
FAQs
GitLab Executor API Interface
The npm package gitlab-x receives a total of 3 weekly downloads. As such, gitlab-x popularity was classified as not popular.
We found that gitlab-x demonstrated a not healthy version release cadence and project activity because the last version was released 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 removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.