chmod .netrc to private
netrc gem checks for permissions and drone-runner-docker creates the file with 644 permission
```
Netrc::Error:
Permission bits for '/root/.netrc' should be 0600, but are 644
```
This commit is contained in:
@@ -36,6 +36,7 @@ func Script(commands []string) string {
|
||||
const optionScript = `
|
||||
if [ ! -z "${DRONE_NETRC_FILE}" ]; then
|
||||
echo $DRONE_NETRC_FILE > $HOME/.netrc
|
||||
chmod 600 $HOME/.netrc
|
||||
fi
|
||||
|
||||
unset DRONE_SCRIPT
|
||||
|
||||
Reference in New Issue
Block a user