Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
gitlab-ce-api
Advanced tools
Readme
A node module for connecting to and getting data from gitlab 8
Access Tokens
. They can be generated from here: [gitlaburl]/profile/personal_access_tokens
npm install gitlab-ce-api --save
var gitlabAPI = require('gitlab-ce-api');
var options = {
token: "",
baseURL: "",
port: 80,
timeout: 15000,
https: true,
verbose: false
};
gitlabAPI(options);
token
: The User to sign into the registry withbaseURL
: The URL for the registry. eg: hub.docker.com
port
: The Port Number to connect to. Default: 80
timeout
: Timeout value in milliseconds. Default 15000
https
: Use HTTPS to connect to the API. Default true
,verbose
: Log console actions taken (for debugging). Default false
each option has a get
and set
method in camel case (gitlabAPI(options).setVerbose(true)
).
gitlabAPI(options).projects().then(function(projects) {
console.log(projects);
}).catch(function(error) {
console.error(error);
});
var ProjectId = 123;
gitlabAPI(options).projects(ProjectId).then(function(project) {
console.log(project);
}).catch(function(error) {
console.error(error);
});
var ProjectId = 123;
gitlabAPI(options).repository(ProjectId, {
path: "", // navigate deeper into file tree
ref_name: "master", // branch
recursive: true // enterprise only
}).then(function(fileTree) {
console.log(fileTree);
}).catch(function(error) {
console.error(error);
});
var ProjectId = 123;
gitlabAPI(options).repositoryFile(ProjectId, {
file_path: "", // path to file
ref: "master" // branch
}).then(function(file) {
console.log(file);
}).catch(function(error) {
console.error(error);
});
FAQs
A node module for connecting to and getting data from gitlab 8
We found that gitlab-ce-api 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.