Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix secret env vars export #1994

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions public/filter/pty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ def read(&block)
end
end

def unescape(str)
`echo #{str}`.chomp rescue ''
end

if __FILE__ == $0
unless command = ARGV.shift
$stderr.puts DATA.read
Expand All @@ -82,7 +78,6 @@ def unescape(str)
end
end

secrets = secrets.map { |s| [s, unescape(s)] }.flatten
secrets.uniq.sort_by { |s| -s.length }.each do |secret|
runner = Filter::StringFilter.new(runner, secret) if secret.length >= 3
end
Expand Down
5 changes: 0 additions & 5 deletions public/filter/redirect_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ def read(&block)
end
end

def unescape(str)
`echo #{str}`.chomp rescue ''
end

if __FILE__ == $0
secrets = []

Expand All @@ -57,7 +53,6 @@ def unescape(str)
end

secrets = secrets.reject { |s| s.length < 3 }
secrets = secrets.map { |s| [s, unescape(s)] }.flatten
secrets = secrets.uniq.sort_by { |s| -s.length }

filter = secrets.inject(Filter::Stdin.new($stdin)) do |filter, secret|
Expand Down