0
0
mirror of https://github.com/dependabot/dependabot-core.git synced 2025-06-16 04:21:43 +00:00
Files
dependabot-core/common/bin/git-credential-store-immutable
2023-08-11 20:44:07 +00:00

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