Socket
Socket
Sign inDemoInstall

push-to-repo

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

6

bin/index.js

@@ -85,6 +85,8 @@ #!/usr/bin/env node

const filePath = `${CI_VARS.projectDir}/${FILE_NAME}`
const fileUrl = encodeURIComponent(FILE_NAME)
debug('filePath: ', filePath)
debug('fileUrl: ', fileUrl)
debug('api.defaults.baseURL: ', api.defaults.baseURL)
const fileContents = await fs.readFile(filePath, 'utf8')
const url = `/projects/${CI_VARS.projectId}/repository/files/${FILE_NAME}`
const url = `/projects/${CI_VARS.projectId}/repository/files/${fileUrl}`
const payload = {

@@ -113,3 +115,3 @@ branch: BRANCH,

DEBUG = !!program.debug
FILE_NAME = encodeURIComponent(program.fileName)
FILE_NAME = program.fileName
BASE_URL = program.url

@@ -116,0 +118,0 @@

# Changelog
## v0.0.4 - 2020-12-26
## v0.0.5 - 2020-12-26

@@ -5,0 +5,0 @@ - Fix: properly URL encode file path.

{
"name": "push-to-repo",
"version": "0.0.4",
"version": "0.0.5",
"description": "Commit changes back to the repo from a GitLab CI job.",

@@ -5,0 +5,0 @@ "main": "bin/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc