mirror of
https://github.com/dependabot/dependabot-core.git
synced 2025-06-16 04:21:43 +00:00
12 lines
327 B
Ruby
Executable File
12 lines
327 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require "shellwords"
|
|
|
|
# Valid commands are: `get`, `store`, `erase`. We only want to let `get`
|
|
# through, as the others mutate the credential store.
|
|
if ARGV.include?("get")
|
|
args = ARGV.map { |arg| Shellwords.escape(arg) }.join(" ")
|
|
exec "git credential-store #{args}"
|
|
end
|