Skip to content

Commit b283e3f

Browse files
committed
Update modes on ssh keys
1 parent 2c24097 commit b283e3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cookbooks/boxcutter_builder/recipes/default.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
file_location '/home/github-runner/.ssh/known_hosts'
6161
owner 'github-runner'
6262
group 'github-runner'
63+
mode '0600'
6364
end
6465

6566
craft_rsa_ssh_key_private = \
@@ -121,13 +122,15 @@
121122
file_location '/home/github-runner/.ssh/known_hosts'
122123
owner 'github-runner'
123124
group 'github-runner'
125+
mode '0600'
124126
end
125127

126128
# arm64 builder
127129
ssh_known_hosts_entry '10.0.1.175' do
128130
file_location '/home/github-runner/.ssh/known_hosts'
129131
owner 'github-runner'
130132
group 'github-runner'
133+
mode '0600'
131134
end
132135

133136
node.default['boxcutter_docker']['buildx']['github-runner'] = {

0 commit comments

Comments
 (0)