Is it safe to keep server name and path to files in public git repository?
0
votes
0
answers
176
views
Hopefully this question is not off-topic:
I find myself constantly
scp
ing files from a remote server, and I want to keep a bash script in GitHub that invokes scp
and brings files. Is it safe to let the world know the server and the path from which I copy files?
I know nothing about security, but is the following situation possible?
Imagine somebody modifies one of the dependencies of my project (another open source project I don't own). In a function I call from that project, a person hides something that ssh
and removes the files in my path.
Should I simply gitignore
my bash script, or is it safe?
Asked by Daniel Duque
(107 rep)
Jun 17, 2022, 07:04 AM